APPLY_PATCHES = PATH=$(HOST_DIR)/bin:$$PATH support/scripts/apply-patches.sh $(if $(QUIET),-s)
-HOST_CPPFLAGS = -I$(HOST_DIR)/usr/include
+HOST_CPPFLAGS = -I$(HOST_DIR)/include
HOST_CFLAGS ?= -O2
HOST_CFLAGS += $(HOST_CPPFLAGS)
HOST_CXXFLAGS += $(HOST_CFLAGS)
-DBUILD_CursesDialog=OFF
# Get rid of -I* options from $(HOST_CPPFLAGS) to prevent that a
-# header available in $(HOST_DIR)/usr/include is used instead of a
+# header available in $(HOST_DIR)/include is used instead of a
# CMake internal header, e.g. lzma* headers of the xz package
HOST_CMAKE_CFLAGS = $(shell echo $(HOST_CFLAGS) | sed -r "s%$(HOST_CPPFLAGS)%%")
HOST_CMAKE_CXXFLAGS = $(shell echo $(HOST_CXXFLAGS) | sed -r "s%$(HOST_CPPFLAGS)%%")
--prefix=$(HOST_DIR) \
--shebangdir=/usr/bin \
--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
- --with-include=$(HOST_DIR)/usr/include \
+ --with-include=$(HOST_DIR)/include \
--with-dynlib=$(HOST_DIR)/lib \
--disable-static \
--enable-shared \
# Avoid using depot-tools to download this file.
define HOST_GOOGLE_BREAKPAD_LSS
$(INSTALL) -D -m 0644 \
- $(HOST_DIR)/usr/include/linux_syscall_support.h \
+ $(HOST_DIR)/include/linux_syscall_support.h \
$(@D)/src/third_party/lss/linux_syscall_support.h
endef
HOST_GOOGLE_BREAKPAD_PRE_CONFIGURE_HOOKS += HOST_GOOGLE_BREAKPAD_LSS
--disable-cups-ppds
# USE_PREGEN_XMLI18N_TMP_H is added by our patch
-GUTENPRINT_MAKE_ENV = BR2_USE_PREGEN_XMLI18N_TMP_H=$(HOST_DIR)/usr/include/xmli18n-tmp.h
+GUTENPRINT_MAKE_ENV = BR2_USE_PREGEN_XMLI18N_TMP_H=$(HOST_DIR)/include/xmli18n-tmp.h
HOST_GUTENPRINT_DEPENDENCIES = host-pkgconf
# The host-gutenprint shall create the required header
HOST_GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
define HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER
- cp $(@D)/src/xml/xmli18n-tmp.h $(HOST_DIR)/usr/include
+ cp $(@D)/src/xml/xmli18n-tmp.h $(HOST_DIR)/include
endef
HOST_GUTENPRINT_POST_BUILD_HOOKS += HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER
cd $(@D); \
$(HOSTCC) $(HOST_CFLAGS) -o b_sortnl_host \
arc4random.c mergesort.c b_sortnl.c critmem_malloc.c \
- critmem_realloc.c -DHAVE_CONFIG_H -I$(HOST_DIR)/usr/include \
+ critmem_realloc.c -DHAVE_CONFIG_H -I$(HOST_DIR)/include \
-L $(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib -lpcre
endef
ifeq ($(BR2_PACKAGE_PYTHON3),y)
HOST_LIBSELINUX_DEPENDENCIES += host-python3
-HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m/
+HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/include/python$(PYTHON3_VERSION_MAJOR)m/
HOST_LIBSELINUX_PYLIBVER = python$(PYTHON3_VERSION_MAJOR)
else
HOST_LIBSELINUX_DEPENDENCIES += host-python
-HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/
+HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/include/python$(PYTHON_VERSION_MAJOR)/
HOST_LIBSELINUX_PYLIBVER = python$(PYTHON_VERSION_MAJOR)
endif
ifeq ($(BR2_PACKAGE_PYTHON3),y)
HOST_LIBSEMANAGE_DEPENDENCIES += host-python3
HOST_LIBSEMANAGE_MAKE_OPTS += \
- PYINC="-I$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m/" \
+ PYINC="-I$(HOST_DIR)/include/python$(PYTHON3_VERSION_MAJOR)m/" \
PYTHONLIBDIR="-L$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/" \
PYLIBVER="python$(PYTHON3_VERSION_MAJOR)"
else
HOST_LIBSEMANAGE_DEPENDENCIES += host-python
HOST_LIBSEMANAGE_MAKE_OPTS += \
- PYINC="-I$(HOST_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/" \
+ PYINC="-I$(HOST_DIR)/include/python$(PYTHON_VERSION_MAJOR)/" \
PYTHONLIBDIR="-L$(HOST_DIR)/lib/python$(PYTHON_VERSION_MAJOR)/" \
PYLIBVER="python$(PYTHON_VERSION_MAJOR)"
endif
$(HOST_CONFIGURE_OPTS) $(LIBXML_PARSER_PERL_RUN_PERL) Makefile.PL \
PREFIX=$(HOST_DIR) \
EXPATLIBPATH=$(HOST_DIR)/lib \
- EXPATINCPATH=$(HOST_DIR)/usr/include \
+ EXPATINCPATH=$(HOST_DIR)/include \
INSTALLDIRS=site \
INSTALLSITELIB=$(HOST_DIR)/lib/perl \
INSTALLSITEARCH=$(HOST_DIR)/lib/perl \
define HOST_LINUX_SYSCALL_SUPPORT_INSTALL_CMDS
$(INSTALL) -D -m 0644 $(@D)/linux_syscall_support.h \
- $(HOST_DIR)/usr/include/linux_syscall_support.h
+ $(HOST_DIR)/include/linux_syscall_support.h
endef
$(eval $(host-generic-package))
HOST_MFGTOOLS_CFLAGS = \
$(HOST_CFLAGS) $(HOST_LDFLAGS) -std=c++11 -lpthread \
-L$(@D)/MfgToolLib -lMfgToolLib -I$(@D)/MfgToolLib \
- -lusb-1.0 -I$(HOST_DIR)/usr/include/libusb-1.0 \
+ -lusb-1.0 -I$(HOST_DIR)/include/libusb-1.0 \
-fpermissive -Wno-write-strings
define HOST_MFGTOOLS_CLI_BUILD
--enable-openjtag \
--enable-buspirate \
--enable-sysfsgpio \
- --oldincludedir=$(HOST_DIR)/usr/include \
- --includedir=$(HOST_DIR)/usr/include \
+ --oldincludedir=$(HOST_DIR)/include \
+ --includedir=$(HOST_DIR)/include \
--disable-doxygen-html \
--with-jim-shared=no \
--disable-shared \
--prefix=$(HOST_DIR) \
--libexecdir=/usr/libexec \
--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
- --with-include=$(HOST_DIR)/usr/include \
+ --with-include=$(HOST_DIR)/include \
--with-dynlib=$(HOST_DIR)/lib \
--disable-static \
--enable-shared \
HOST_S6_CONF_OPTS = \
--prefix=$(HOST_DIR) \
--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
- --with-include=$(HOST_DIR)/usr/include \
+ --with-include=$(HOST_DIR)/include \
--with-dynlib=$(HOST_DIR)/lib \
--disable-static \
--enable-shared \
endif
HOST_SETOOLS_PYTHON_SITE_PACKAGES = $(HOST_DIR)/lib/python$(HOST_SETOOLS_PYTHON_VERSION)/site-packages
-HOST_SETOOLS_PYTHON_INCLUDES = $(HOST_DIR)/usr/include/python$(HOST_SETOOLS_PYTHON_VERSION)
+HOST_SETOOLS_PYTHON_INCLUDES = $(HOST_DIR)/include/python$(HOST_SETOOLS_PYTHON_VERSION)
HOST_SETOOLS_PYTHON_LIB = -lpython$(HOST_SETOOLS_PYTHON_VERSION)
# Notes: Need "disable-selinux-check" so the configure does not check to see
# src/util/makekeys is executed at build time to generate ks_tables.h, so
# it should get compiled for the host. The libX11 makefile unfortunately
# doesn't have X11_CFLAGS_FOR_BUILD so this doesn't work. For buildroot,
-# we know the X11 includes are in $(HOST_DIR)/usr/include, which are already
+# we know the X11 includes are in $(HOST_DIR)/include, which are already
# in the CFLAGS_FOR_BUILD, so we can just remove the X11_CFLAGS
define XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
$(SED) '/X11_CFLAGS/d' $(@D)/src/util/Makefile*
define HOST_ZIC_INSTALL_CMDS
$(INSTALL) -D -m 755 $(@D)/zic $(HOST_DIR)/sbin/zic
- $(INSTALL) -D -m 644 $(@D)/tzfile.h $(HOST_DIR)/usr/include/tzfile.h
+ $(INSTALL) -D -m 644 $(@D)/tzfile.h $(HOST_DIR)/include/tzfile.h
endef
$(eval $(host-generic-package))