kernel-vars.mk 798 B

123456789101112131415161718192021
  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. KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}'