kernel-vars.mk 741 B

123456789101112131415161718192021
  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. KERNEL_MAKE_ENV:= PATH="${TOOLCHAIN_DIR}/usr/bin:${STAGING_HOST_DIR}/usr/bin:$$PATH"