libplatforminfo: x86: remove outdated subtargets, simplify image name code
This commit is contained in:
parent
f2885547ff
commit
8e4d1a3095
|
@ -18,7 +18,7 @@ define Package/libplatforminfo
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=Platform information library
|
TITLE:=Platform information library
|
||||||
DEPENDS:=@(TARGET_ar71xx_generic||TARGET_ar71xx_mikrotik||TARGET_ar71xx_nand||TARGET_mpc85xx_generic||TARGET_x86_generic||TARGET_x86_geode||TARGET_x86_kvm_guest||TARGET_x86_64||TARGET_x86_xen_domu||TARGET_ramips_mt7621||TARGET_ramips_mt7628||TARGET_ramips_rt305x||TARGET_brcm2708_bcm2708||TARGET_brcm2708_bcm2709||TARGET_sunxi||TARGET_mvebu)
|
DEPENDS:=@(TARGET_ar71xx_generic||TARGET_ar71xx_mikrotik||TARGET_ar71xx_nand||TARGET_mpc85xx_generic||TARGET_x86_generic||TARGET_x86_geode||TARGET_x86_64||TARGET_ramips_mt7621||TARGET_ramips_mt7628||TARGET_ramips_rt305x||TARGET_brcm2708_bcm2708||TARGET_brcm2708_bcm2709||TARGET_sunxi||TARGET_mvebu)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
|
|
|
@ -93,17 +93,5 @@ const char * platforminfo_get_model(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const char * platforminfo_get_image_name(void) {
|
const char * platforminfo_get_image_name(void) {
|
||||||
#if defined(TARGET_x86_generic)
|
return STRINGIFY(TARGET) "-" STRINGIFY(SUBTARGET);
|
||||||
return "x86-generic";
|
|
||||||
#elif defined(TARGET_x86_geode)
|
|
||||||
return "x86-geode";
|
|
||||||
#elif defined(TARGET_x86_kvm_guest)
|
|
||||||
return "x86-kvm";
|
|
||||||
#elif defined(TARGET_x86_xen_domu)
|
|
||||||
return "x86-xen";
|
|
||||||
#elif defined(TARGET_x86_64)
|
|
||||||
return "x86-64";
|
|
||||||
#else
|
|
||||||
#error Unknown x86 subtarget
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
template/x86.c
|
|
|
@ -1 +0,0 @@
|
||||||
template/x86.c
|
|
Loading…
Reference in New Issue