Globally replace $(HOST_DIR)/usr with $(HOST_DIR)
authorArnout Vandecappelle <arnout@mind.be>
Wed, 5 Jul 2017 11:14:24 +0000 (13:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 13:22:29 +0000 (15:22 +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' | xargs sed -i 's%\$(HOST_DIR)/usr%$(HOST_DIR)%g'

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 files changed:
package/erlang/erlang.mk
package/gcc/gcc.mk
package/libsepol/libsepol.mk
package/lua/lua.mk
package/luarocks/luarocks.mk
package/omxplayer/omxplayer.mk
package/pseudo/pseudo.mk
package/qt/qt.mk
package/qt5/qt5base/qt5base.mk
package/setools/setools.mk
package/upx/upx.mk
package/vboot-utils/vboot-utils.mk

index 0f04a84424a554ae523f2f2ab5d5d00a6b6e3e7d..f3684d0c91f45b266a431fd58bd590912563d10c 100644 (file)
@@ -39,7 +39,7 @@ HOST_ERLANG_CONF_ENV += ERL_TOP=$(@D)
 # erlang uses openssl for all things crypto. Since the host tools (such as
 # rebar) uses crypto, we need to build host-erlang with support for openssl.
 HOST_ERLANG_DEPENDENCIES = host-openssl
-HOST_ERLANG_CONF_OPTS = --without-javac --with-ssl=$(HOST_DIR)/usr
+HOST_ERLANG_CONF_OPTS = --without-javac --with-ssl=$(HOST_DIR)
 
 HOST_ERLANG_CONF_OPTS += --without-termcap
 
index bdeb956972df1654308cc92300869e2b553d8ff7..ff69209f848272d58b83ab4e8d056d27142353f7 100644 (file)
@@ -92,9 +92,9 @@ HOST_GCC_COMMON_CONF_OPTS = \
        --with-gnu-ld \
        --disable-libssp \
        --disable-multilib \
-       --with-gmp=$(HOST_DIR)/usr \
-       --with-mpc=$(HOST_DIR)/usr \
-       --with-mpfr=$(HOST_DIR)/usr \
+       --with-gmp=$(HOST_DIR) \
+       --with-mpc=$(HOST_DIR) \
+       --with-mpfr=$(HOST_DIR) \
        --with-pkgversion="Buildroot $(BR2_VERSION_FULL)" \
        --with-bugurl="http://bugs.buildroot.net/"
 
@@ -169,12 +169,12 @@ endif
 
 ifeq ($(BR2_GCC_ENABLE_GRAPHITE),y)
 HOST_GCC_COMMON_DEPENDENCIES += host-isl
-HOST_GCC_COMMON_CONF_OPTS += --with-isl=$(HOST_DIR)/usr
+HOST_GCC_COMMON_CONF_OPTS += --with-isl=$(HOST_DIR)
 # gcc 5 doesn't need cloog any more, see
 # https://gcc.gnu.org/gcc-5/changes.html
 ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),)
 HOST_GCC_COMMON_DEPENDENCIES += host-cloog
-HOST_GCC_COMMON_CONF_OPTS += --with-cloog=$(HOST_DIR)/usr
+HOST_GCC_COMMON_CONF_OPTS += --with-cloog=$(HOST_DIR)
 endif
 else
 HOST_GCC_COMMON_CONF_OPTS += --without-isl --without-cloog
index 710ab251126402029604541a85da07a84916e4c5..21ca419c74524e39c484f70bf027c253c3319f30 100644 (file)
@@ -35,7 +35,7 @@ endef
 
 HOST_LIBSEPOL_MAKE_ENV = \
        $(HOST_MAKE_ENV) \
-       DESTDIR=$(HOST_DIR)/usr \
+       DESTDIR=$(HOST_DIR) \
        PREFIX=$(HOST_DIR)
 
 define HOST_LIBSEPOL_BUILD_CMDS
index 5810b5fa726fcfbc1cdb6e67d2279189eaa232ab..93339ad9cee3d81932d163b1be1e6822d4dde569 100644 (file)
@@ -95,7 +95,7 @@ define LUA_INSTALL_TARGET_CMDS
 endef
 
 define HOST_LUA_INSTALL_CMDS
-       $(HOST_MAKE_ENV) $(MAKE) INSTALL_TOP="$(HOST_DIR)/usr" -C $(@D) install
+       $(HOST_MAKE_ENV) $(MAKE) INSTALL_TOP="$(HOST_DIR)" -C $(@D) install
        $(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
                $(HOST_DIR)/lib/pkgconfig/lua.pc
 endef
index e965ab2288431d6bcebf36385447c8c89a81f9f7..bc700a5f95b5389bb9eac6885a69a3386509e9f9 100644 (file)
@@ -11,7 +11,7 @@ LUAROCKS_LICENSE_FILES = COPYING
 
 HOST_LUAROCKS_DEPENDENCIES = host-luainterpreter
 
-LUAROCKS_CONFIG_DIR = $(HOST_DIR)/usr/etc/luarocks
+LUAROCKS_CONFIG_DIR = $(HOST_DIR)/etc/luarocks
 LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/config-$(LUAINTERPRETER_ABIVER).lua
 LUAROCKS_CFLAGS = $(TARGET_CFLAGS) -fPIC
 ifeq ($(BR2_PACKAGE_LUA_5_3),y)
@@ -21,7 +21,7 @@ endif
 HOST_LUAROCKS_CONF_OPTS = \
        --prefix=$(HOST_DIR) \
        --sysconfdir=$(LUAROCKS_CONFIG_DIR) \
-       --with-lua=$(HOST_DIR)/usr
+       --with-lua=$(HOST_DIR)
 
 ifeq ($(BR2_PACKAGE_LUAJIT),y)
 HOST_LUAROCKS_CONF_OPTS += --lua-suffix=jit
index 7425014d0cca1c954ea870c514f1b7ec9026637d..9bb58778c218856c0bdacfbc0c9f8b8bad0d7994 100644 (file)
@@ -27,7 +27,7 @@ OMXPLAYER_MAKE_ENV = \
        BUILDROOT=$(TOP_DIR) \
        SDKSTAGE=$(STAGING_DIR) \
        TARGETFS=$(TARGET_DIR) \
-       TOOLCHAIN=$(HOST_DIR)/usr \
+       TOOLCHAIN=$(HOST_DIR) \
        HOST=$(GNU_TARGET_NAME) \
        SYSROOT=$(STAGING_DIR) \
        JOBS=$(PARALLEL_JOBS) \
index d78fc7aa8aea0e9cd37a69830eae54574d9218bd..446427109f39e9aeefdfbd0378b04ea8d30f7ab5 100644 (file)
@@ -24,6 +24,6 @@ HOST_PSEUDO_CONF_OPTS = \
        --with-rpath=$(HOST_DIR)/lib \
        --bits=$(if $(filter %64,$(HOSTARCH)),64,32) \
        --libdir=$(HOST_DIR)/lib \
-       --with-sqlite=$(HOST_DIR)/usr
+       --with-sqlite=$(HOST_DIR)
 
 $(eval $(host-autotools-package))
index cb1f01e1f06db61e43fe4fe5dcd989bbaadab445..d867718c470dd431f69aeab4279fb75d179f1a6d 100644 (file)
@@ -598,10 +598,10 @@ QT_CONF_FILE = $(HOST_DIR)/bin/qt.conf
 define QT_INSTALL_QT_CONF
        mkdir -p $(dir $(QT_CONF_FILE))
        echo "[Paths]"                             > $(QT_CONF_FILE)
-       echo "Prefix=$(HOST_DIR)/usr"             >> $(QT_CONF_FILE)
+       echo "Prefix=$(HOST_DIR)"             >> $(QT_CONF_FILE)
        echo "Headers=$(STAGING_DIR)/usr/include" >> $(QT_CONF_FILE)
        echo "Libraries=$(STAGING_DIR)/usr/lib"   >> $(QT_CONF_FILE)
-       echo "Data=$(HOST_DIR)/usr"               >> $(QT_CONF_FILE)
+       echo "Data=$(HOST_DIR)"               >> $(QT_CONF_FILE)
        echo "Binaries=$(HOST_DIR)/bin"       >> $(QT_CONF_FILE)
 endef
 
@@ -616,7 +616,7 @@ define QT_INSTALL_STAGING_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
        mkdir -p $(HOST_DIR)/bin
        mv $(addprefix $(STAGING_DIR)/usr/bin/,$(QT_HOST_PROGRAMS)) $(HOST_DIR)/bin
-       ln -sf $(STAGING_DIR)/usr/mkspecs $(HOST_DIR)/usr/mkspecs
+       ln -sf $(STAGING_DIR)/usr/mkspecs $(HOST_DIR)/mkspecs
        $(QT_INSTALL_QT_CONF)
        for i in moc uic rcc lupdate lrelease ; do \
                $(SED) "s,^$${i}_location=.*,$${i}_location=$(HOST_DIR)/bin/$${i}," \
index 5fe8bb884b324372523bb1abe126d521138587d7..c5d2aa17753b24b10060de06454ac77dd0f44c25 100644 (file)
@@ -239,7 +239,7 @@ define QT5BASE_CONFIGURE_CMDS
                ./configure \
                -v \
                -prefix /usr \
-               -hostprefix $(HOST_DIR)/usr \
+               -hostprefix $(HOST_DIR) \
                -headerdir /usr/include/qt5 \
                -sysroot $(STAGING_DIR) \
                -plugindir /usr/lib/qt/plugins \
index 5e101b1d86e578ab96300ad9b9d3d49465501b22..d2e9f059983a0fd96bb66938fbbbfbcf830e8c9e 100644 (file)
@@ -64,8 +64,8 @@ HOST_SETOOLS_CONF_OPTS = \
        --disable-swig-java \
        --disable-swig-python \
        --disable-swig-tcl \
-       --with-sepol-devel="$(HOST_DIR)/usr" \
-       --with-selinux-devel="$(HOST_DIR)/usr" \
+       --with-sepol-devel="$(HOST_DIR)" \
+       --with-selinux-devel="$(HOST_DIR)" \
        PYTHON_LDFLAGS="-L$(HOST_DIR)/lib/" \
        PYTHON_CPPFLAGS="-I$(HOST_SETOOLS_PYTHON_INCLUDES)" \
        PYTHON_SITE_PKG="$(HOST_SETOOLS_PYTHON_SITE_PACKAGES)" \
index eec88c743a26c25250ed1065e2c3fbd9eea2e657..1fe7162c21f18ba7cc262fcc7eab21b6301ab0df 100644 (file)
@@ -16,7 +16,7 @@ HOST_UPX_DEPENDENCIES = host-ucl host-zlib
 # stating to "please choose a target for 'make'"... :-(
 define HOST_UPX_BUILD_CMDS
        $(HOST_MAKE_ENV) $(MAKE) CPPFLAGS="$(HOST_CPPFLAGS)" \
-               LDFLAGS="$(HOST_LDFLAGS)" UPX_UCLDIR=$(HOST_DIR)/usr \
+               LDFLAGS="$(HOST_LDFLAGS)" UPX_UCLDIR=$(HOST_DIR) \
                CXXFLAGS_WERROR= \
                -C $(@D) all
 endef
index 9879dbab75fed594d7065a1c9db7010f34ff2d73..a6a67ad317c6b3e8de0a38e67ea5692256292485 100644 (file)
@@ -31,7 +31,7 @@ define HOST_VBOOT_UTILS_BUILD_CMDS
 endef
 
 define HOST_VBOOT_UTILS_INSTALL_CMDS
-       $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR)/usr \
+       $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) \
                futil_install cgpt_install devkeys_install
 endef