[source] x86: unify CPU_TYPE for legacy and geode

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 24 04:42:16 PST 2017


nbd pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/b630d525c88e824d250f5c565356ed870c16330e

commit b630d525c88e824d250f5c565356ed870c16330e
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Jan 24 13:11:43 2017 +0100

    x86: unify CPU_TYPE for legacy and geode
    
    According to some reports, -march=pentium-mmx is a better choice for
    older Geode CPUs than -march=geode anyway.
    
    Bump the minimum architecture of the legacy target from i486 to
    pentium-mmx. Anything older is not worth supporting anyway.
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 include/target.mk                | 5 ++---
 target/linux/x86/geode/target.mk | 2 --
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/include/target.mk b/include/target.mk
index 597563d..3099448 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -170,10 +170,9 @@ ifeq ($(DUMP),1)
     CPU_CFLAGS_octeon = -march=octeon -mabi=64
   endif
   ifeq ($(ARCH),i386)
-    CPU_TYPE ?= i486
-    CPU_CFLAGS_i486 = -march=i486
+    CPU_TYPE ?= pentium
+    CPU_CFLAGS_pentium = -march=pentium-mmx
     CPU_CFLAGS_pentium4 = -march=pentium4
-    CPU_CFLAGS_geode = -march=geode -mmmx -m3dnow
   endif
   ifneq ($(findstring arm,$(ARCH)),)
     CPU_TYPE ?= xscale
diff --git a/target/linux/x86/geode/target.mk b/target/linux/x86/geode/target.mk
index d98adac..4faa49f 100644
--- a/target/linux/x86/geode/target.mk
+++ b/target/linux/x86/geode/target.mk
@@ -7,8 +7,6 @@ DEFAULT_PACKAGES += \
 			kmod-ledtrig-heartbeat kmod-ledtrig-gpio \
 			kmod-ledtrig-netdev hwclock wpad-mini
 
-CPU_TYPE := geode
-
 define Target/Description
 	Build firmware images for AMD Geode GX/LX based systems (net5501, alix, geos)
 endef



More information about the lede-commits mailing list