X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/12ef7b471260cb85ef8f5e635138bf0af93b94dc..62c38a56c82ae9a66623dc6cb7073a5b0bde7dba:/rules.mk diff --git a/rules.mk b/rules.mk index 96ae8d57f..dad7456a6 100644 --- a/rules.mk +++ b/rules.mk @@ -29,6 +29,7 @@ confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1)) _SINGLE=export MAKEFLAGS=$(space); +CFLAGS:= ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(call qstrip,$(CONFIG_ARCH))))) BOARD:=$(call qstrip,$(CONFIG_TARGET_BOARD)) TARGET_OPTIMIZATION:=$(call qstrip,$(CONFIG_TARGET_OPTIMIZATION))