1
0

kernel-vars.mk 1019 B

1234567891011121314151617181920212223242526
  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. ifneq ($(ADK_NATIVE),y)
  5. KERNEL_MAKE_OPTS+= CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \
  6. CC="$(TARGET_CC)" HOSTCC="${CC_FOR_BUILD}" \
  7. HOSTCFLAGS='${CFLAGS_FOR_BUILD}'
  8. endif
  9. ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54G},y)
  10. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x400000 \
  11. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x10000 \
  12. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  13. endif
  14. ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54GS},y)
  15. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
  16. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x20000 \
  17. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  18. endif
  19. ifeq (${ADK_TARGET_BROADCOM_MODEL_ASUS_WL500GP},y)
  20. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
  21. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x20000 \
  22. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  23. endif
  24. KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}' PATH="$$PATH:${TOOLS_DIR}"