Globally replace $(HOST_DIR)/usr/include with $(HOST_DIR)/include
authorArnout Vandecappelle <arnout@mind.be>
Wed, 5 Jul 2017 11:14:22 +0000 (13:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 13:21:19 +0000 (15:21 +0200)
Since things are no longer installed in $(HOST_DIR)/usr, the callers
should also not refer to it.

This is a mechanical change with
git grep -l '$(HOST_DIR)/usr/include' | xargs sed -i 's%$(HOST_DIR)/usr/include%$(HOST_DIR)/include%g'

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 files changed:
package/Makefile.in
package/cmake/cmake.mk
package/execline/execline.mk
package/google-breakpad/google-breakpad.mk
package/gutenprint/gutenprint.mk
package/leafnode2/leafnode2.mk
package/libselinux/libselinux.mk
package/libsemanage/libsemanage.mk
package/libxml-parser-perl/libxml-parser-perl.mk
package/linux-syscall-support/linux-syscall-support.mk
package/mfgtools/mfgtools.mk
package/openocd/openocd.mk
package/s6-rc/s6-rc.mk
package/s6/s6.mk
package/setools/setools.mk
package/x11r7/xlib_libX11/xlib_libX11.mk
package/zic/zic.mk

index 4fe560f68e41e9aa9e368f73b441e6ac7ff6ed71..113c89b81b548cf8d78eacb6d3b4f7fe6971342c 100644 (file)
@@ -216,7 +216,7 @@ UNZIP := $(shell which unzip || type -p unzip) -q
 
 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)
index d5d18ffd3c6b923f09a6345d67d44470fcd4809f..e53b8aa36017e677ddbe28764a61b1103a71cee4 100644 (file)
@@ -32,7 +32,7 @@ CMAKE_CONF_OPTS = \
        -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)%%")
index 619f4932adc1f094ab7e1141d9a1586db722cb94..50c3fca3f50d8bc6f531ed35479c9ba6e770181e 100644 (file)
@@ -48,7 +48,7 @@ HOST_EXECLINE_CONF_OPTS = \
        --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 \
index 3501f45b12f7a7a56e1f0a6e420219986fe77a10..8ae5f99bc7b2f2710e0c490287cbd2ce0392d304 100644 (file)
@@ -20,7 +20,7 @@ HOST_GOOGLE_BREAKPAD_DEPENDENCIES = host-linux-syscall-support
 # 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
index 99d1f4324c14dc08bbfc3cabe7f8ef3f98ac8810..2e0ff3d906a5f6ffff22e5b20ab3668416969f5a 100644 (file)
@@ -43,7 +43,7 @@ GUTENPRINT_CONF_OPTS = \
        --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
@@ -78,7 +78,7 @@ GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
 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
 
index 7efe9445ad09cca492057a78e06be44e223db148..a02aad4302b2a645500dd5f242bb8f102e72d49b 100644 (file)
@@ -30,7 +30,7 @@ define LEAFNODE2_BUILD_SORTNL_TOOL
        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
 
index d0aadf38927073577bad9122035dccf5f108f99e..3f2aa4cbfed330ff72cad4cb82413ee72bd5097e 100644 (file)
@@ -77,11 +77,11 @@ HOST_LIBSELINUX_DEPENDENCIES = \
 
 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
 
index 15bc664bd365696ccefdd22583ae5d7031044070..efeb1fcd20c14bbfe99d775d04afae877204e352 100644 (file)
@@ -35,13 +35,13 @@ HOST_LIBSEMANAGE_MAKE_OPTS += $(HOST_CONFIGURE_OPTS) \
 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
index 08bc8bb59f338cc7e7d73c4de13d86668a10a2e6..4a3b196448b1e796fe6ddc04eb6d8b3f3a6acfb6 100644 (file)
@@ -16,7 +16,7 @@ define HOST_LIBXML_PARSER_PERL_CONFIGURE_CMDS
                $(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 \
index c02610d80db05cab37ae7d304418fdbcc1f8a125..b8145de496cb251fc34d8222757e0925eed319b3 100644 (file)
@@ -22,7 +22,7 @@ endef
 
 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))
index 1afd47b13f677fdf6c75faa565d32642849cfe70..00a011af85736762d0002b1b5a61594b86b937f5 100644 (file)
@@ -14,7 +14,7 @@ HOST_MFGTOOLS_DEPENDENCIES = host-libusb
 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
index 63201ee8c778d4e663afd1d18e0bc2cec1207e36..96f667b73c944fa6324745733013fe5475f06306 100644 (file)
@@ -88,8 +88,8 @@ HOST_OPENOCD_CONF_OPTS = \
        --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 \
index 9e8e566f9b435df5b753cbae97397e7a36071376..1a9a49169ef78721cb6859d23c1f04ad68451cef 100644 (file)
@@ -50,7 +50,7 @@ HOST_S6_RC_CONF_OPTS = \
        --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 \
index e6b024a968c3cb0d756597eeca36d08a71560248..4daf1e7ecde591e2eb48b97ddff78bf5cff9b4fb 100644 (file)
@@ -48,7 +48,7 @@ HOST_S6_DEPENDENCIES = host-execline
 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 \
index 960e5be92170cf96d5cd771c7a2b0f5db14a192e..5e101b1d86e578ab96300ad9b9d3d49465501b22 100644 (file)
@@ -49,7 +49,7 @@ HOST_SETOOLS_CONF_ENV += am_cv_python_version=$(PYTHON_VERSION)
 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
index fe1a7c3bc5978e0f2bf704db641b1ca973666029..64344da737e10f910d8c5cc363b52df32ba0227d 100644 (file)
@@ -48,7 +48,7 @@ HOST_XLIB_LIBX11_CONF_OPTS = \
 # 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*
index cbda414d3e9fcd7d3644d85bef3985b20a72b7b9..236febf4ae904b34305265d0bfdeaf7a36fcb04c 100644 (file)
@@ -16,7 +16,7 @@ endef
 
 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))