kernel-vars.mk 1.0 KB

123456789101112131415161718192021222324252627
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. KERNEL_MAKE_OPTS:= -C "${LINUX_DIR}" V=1 \
  4. CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \
  5. CC="$(TARGET_CC)" HOSTCC="${CC_FOR_BUILD}" \
  6. HOSTCFLAGS='${CFLAGS_FOR_BUILD}' \
  7. CONFIG_SHELL='${SHELL}'
  8. ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54G},y)
  9. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x400000 \
  10. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x10000 \
  11. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  12. endif
  13. ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54GS},y)
  14. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
  15. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x20000 \
  16. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  17. endif
  18. ifeq (${ADK_TARGET_BROADCOM_MODEL_ASUS_WL500GP},y)
  19. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
  20. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x20000 \
  21. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  22. endif
  23. KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}' \
  24. PATH="${STAGING_HOST_DIR}/usr/bin:$$PATH"