kernel-vars.mk 884 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:= V=1 \
  4. ARCH="$(ADK_TARGET_KARCH)" \
  5. CROSS_COMPILE="$(TARGET_CROSS)" \
  6. CC="$(TARGET_CC)" \
  7. HOSTCC="${HOST_CC}" \
  8. HOSTCXX="${HOST_CXX}" \
  9. DISABLE_PAX_PLUGINS=y \
  10. CONFIG_SHELL='${SHELL}'
  11. # regex for relocs needs pcre on Darwin
  12. ifeq (${OStype},Darwin)
  13. KERNEL_MAKE_OPTS+= HOSTCFLAGS='$(HOST_CPPFLAGS) ${HOST_CFLAGS}' HOSTLDFLAGS='-lpcreposix'
  14. KERNEL_MAKE_OPTS+= HOST_EXTRACFLAGS='-I ${ADK_TOPDIR}/adk/include -DKBUILD_NO_NLS'
  15. else
  16. KERNEL_MAKE_OPTS+= HOSTCFLAGS='${HOST_CFLAGS}'
  17. endif
  18. ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
  19. KERNEL_MAKE_OPTS+= LOADADDR=0x40008000
  20. endif
  21. KERNEL_MAKE_ENV:= PATH="${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:$$PATH"
  22. LINUX_BUILD_DIR:= $(BUILD_DIR)/linux-$(ADK_TARGET_ARCH)