From c7329ac035d6f4699caa2d7d332cef7b688f19a4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 26 Apr 2011 22:44:06 +0200 Subject: add model support for broadcom devices --- mk/kernel-vars.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mk/kernel-vars.mk') diff --git a/mk/kernel-vars.mk b/mk/kernel-vars.mk index e730f561d..346a26fc9 100644 --- a/mk/kernel-vars.mk +++ b/mk/kernel-vars.mk @@ -7,3 +7,11 @@ KERNEL_MAKE_OPTS+= CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \ CC="$(TARGET_CC)" HOSTCC="${CC_FOR_BUILD}" \ HOSTCFLAGS='${CFLAGS_FOR_BUILD}' endif +ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54G},y) +ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x400000 +endif +ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54GS},y) +ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 +endif + +KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}' -- cgit v1.2.3