kernel-vars.mk 661 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 \
  4. ARCH="$(ADK_TARGET_ARCH)" \
  5. CROSS_COMPILE="$(TARGET_CROSS)" \
  6. CC="$(TARGET_CC)" \
  7. HOSTCC="${CC_FOR_BUILD}" \
  8. HOSTCXX="${CXX_FOR_BUILD}" \
  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='$(CPPFLAGS_FOR_BUILD) ${CFLAGS_FOR_BUILD}' HOSTLDFLAGS='-lpcreposix'
  14. else
  15. KERNEL_MAKE_OPTS+= HOSTCFLAGS='${CFLAGS_FOR_BUILD}'
  16. endif
  17. KERNEL_MAKE_ENV:= PATH="${STAGING_HOST_DIR}/usr/bin:$$PATH"