kernel-vars.mk 680 B

1234567891011121314151617181920
  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 -C "${LINUX_DIR}" \
  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 ($(ADK_HOST_DARWIN),y)
  13. KERNEL_MAKE_OPTS+= HOSTCFLAGS='$(HOST_CPPFLAGS) ${HOST_CFLAGS}' HOSTLDFLAGS='-lpcreposix'
  14. else
  15. KERNEL_MAKE_OPTS+= HOSTCFLAGS='${HOST_CFLAGS}'
  16. endif
  17. KERNEL_MAKE_ENV:= PATH="${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:$$PATH"