lua-platform-info: add x86 support
This commit is contained in:
parent
c1068fef42
commit
2a1c9f11b4
|
@ -12,7 +12,7 @@ define Package/lua-platform-info
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=Lua hardware platform information library
|
TITLE:=Lua hardware platform information library
|
||||||
DEPENDS:=+lua @(TARGET_ar71xx_generic||TARGET_mpc85xx_generic)
|
DEPENDS:=+lua @(TARGET_ar71xx_generic||TARGET_mpc85xx_generic||TARGET_x86_generic)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/lua-platform-info/description
|
define Package/lua-platform-info/description
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
module 'platform_info'
|
||||||
|
|
||||||
|
|
||||||
|
-- The OpenWrt target
|
||||||
|
function get_target()
|
||||||
|
return 'x86'
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The OpenWrt subtarget or nil
|
||||||
|
function get_subtarget()
|
||||||
|
return 'generic'
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The board name
|
||||||
|
function get_board_name()
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The model name
|
||||||
|
function get_model()
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The image name for sysupgrades
|
||||||
|
function get_image_name()
|
||||||
|
return nil
|
||||||
|
end
|
Loading…
Reference in New Issue