kernel-vars.mk 589 B

123456789101112131415161718
  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=$(ARCH) \
  5. CROSS_COMPILE="$(TARGET_CROSS)" \
  6. CC="$(TARGET_CC)" \
  7. HOSTCC="${CC_FOR_BUILD}" \
  8. CONFIG_SHELL='${SHELL}'
  9. # regex for relocs needs pcre on Darwin
  10. ifeq ($(ADK_HOST_DARWIN),y)
  11. KERNEL_MAKE_OPTS+= HOSTCFLAGS='$(CPPFLAGS_FOR_BUILD) ${CFLAGS_FOR_BUILD}' HOSTLDFLAGS='-lpcreposix'
  12. else
  13. KERNEL_MAKE_OPTS+= HOSTCFLAGS='${CFLAGS_FOR_BUILD}'
  14. endif
  15. KERNEL_MAKE_ENV+= PATH="${STAGING_HOST_DIR}/usr/bin:$$PATH"