kernel-vars.mk 1.0 KB

12345678910111213141516171819202122232425262728
  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. CONFIG_SHELL='${SHELL}'
  9. endif
  10. ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54G},y)
  11. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x400000 \
  12. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x10000 \
  13. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  14. endif
  15. ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54GS},y)
  16. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
  17. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x20000 \
  18. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  19. endif
  20. ifeq (${ADK_TARGET_BROADCOM_MODEL_ASUS_WL500GP},y)
  21. ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
  22. -DBCM47XX_OVERRIDE_NVRAMSIZE=0x20000 \
  23. -DBCM47XX_OVERRIDE_CFESIZE=0x40000
  24. endif
  25. KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}' \
  26. PATH="${STAGING_HOST_DIR}/usr/bin:$$PATH"