libplatforminfo: x86: remove outdated subtargets, simplify image name code

This commit is contained in:
Matthias Schiffer 2017-02-12 05:44:21 +01:00
parent f2885547ff
commit 8e4d1a3095
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
4 changed files with 2 additions and 16 deletions

View File

@ -18,7 +18,7 @@ define Package/libplatforminfo
SECTION:=libs
CATEGORY:=Libraries
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
CMAKE_OPTIONS += \

View File

@ -93,17 +93,5 @@ const char * platforminfo_get_model(void) {
}
const char * platforminfo_get_image_name(void) {
#if defined(TARGET_x86_generic)
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
return STRINGIFY(TARGET) "-" STRINGIFY(SUBTARGET);
}

View File

@ -1 +0,0 @@
template/x86.c

View File

@ -1 +0,0 @@
template/x86.c