From ecb1e9948ed95fbe8c5b43dce118718449cff93d Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Fri, 13 Dec 2024 00:37:51 +0800 Subject: rename luarocks.module to lua.module, platform.linux.driver to platform.linux.module --- xmake/rules/platform/linux/driver/xmake.lua | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'xmake/rules/platform/linux/driver/xmake.lua') diff --git a/xmake/rules/platform/linux/driver/xmake.lua b/xmake/rules/platform/linux/driver/xmake.lua index 297dcc83e..661850a6d 100644 --- a/xmake/rules/platform/linux/driver/xmake.lua +++ b/xmake/rules/platform/linux/driver/xmake.lua @@ -18,23 +18,8 @@ -- @file xmake.lua -- --- build linux driver module rule("platform.linux.driver") - set_sourcekinds("cc") - on_load(function (target) - import("driver_modules").load(target) - end) on_config(function (target) - import("driver_modules").config(target) - end) - on_link(function (target, opt) - import("driver_modules").link(target, opt) - end) - on_install(function (target) - import("driver_modules").install(target) + wprint('deprecated: please use rule("platform.linux.module") instead of rule("platform.linux.driver")') end) - on_uninstall(function (target) - import("driver_modules").uninstall(target) - end) - - + add_deps("platform.linux.module") -- cgit v1.3.1 From d53f304899857e247c6491acae97ef2c6f8cad6f Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 13 Dec 2024 10:14:14 +0800 Subject: Update xmake.lua --- xmake/rules/platform/linux/driver/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/platform/linux/driver/xmake.lua') diff --git a/xmake/rules/platform/linux/driver/xmake.lua b/xmake/rules/platform/linux/driver/xmake.lua index 661850a6d..a050185b3 100644 --- a/xmake/rules/platform/linux/driver/xmake.lua +++ b/xmake/rules/platform/linux/driver/xmake.lua @@ -20,6 +20,6 @@ rule("platform.linux.driver") on_config(function (target) - wprint('deprecated: please use rule("platform.linux.module") instead of rule("platform.linux.driver")') + wprint('deprecated: please use add_rules("platform.linux.module") instead of add_rules("platform.linux.driver")') end) add_deps("platform.linux.module") -- cgit v1.3.1