treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424
for more information on
STAGING_DIR_HOSTPKG.
STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release
(it is equivalent to $(STAGING_DIR)/host), so this simple search/replace
cleanup is safe to apply. Doing this cleanup now will be useful for the
Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting
with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream.
Also fixes a typo in the dbus Makefile ("STAGIND_DIR").
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
876d139c98
commit
4a984a8d60
36 changed files with 61 additions and 61 deletions
|
@ -64,8 +64,8 @@ define Host/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_DIR) $(HOST_BUILD_PREFIX)/bin
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
|
||||||
$(CP) $(HOST_BUILD_DIR)/lib/util/mksig{list,name} $(HOST_BUILD_PREFIX)/bin/
|
$(CP) $(HOST_BUILD_DIR)/lib/util/mksig{list,name} $(STAGING_DIR_HOSTPKG)/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
|
|
|
@ -75,16 +75,16 @@ endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
||||||
DPREFIX=$(STAGING_DIR)/host \
|
DPREFIX=$(STAGING_DIR_HOSTPKG) \
|
||||||
TARGET_CFLAGS="$(HOST_CFLAGS)" \
|
TARGET_CFLAGS="$(HOST_CFLAGS)" \
|
||||||
TARGET_LDFLAGS="$(HOST_LDFLAGS)"
|
TARGET_LDFLAGS="$(HOST_LDFLAGS)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
||||||
DPREFIX=$(STAGING_DIR)/host \
|
DPREFIX=$(STAGING_DIR_HOSTPKG) \
|
||||||
install
|
install
|
||||||
$(CP) $(STAGING_DIR)/host/bin/luajit-2.1.0-beta2 $(STAGING_DIR)/host/bin/$(PKG_NAME)
|
$(CP) $(STAGING_DIR_HOSTPKG)/bin/luajit-2.1.0-beta2 $(STAGING_DIR_HOSTPKG)/bin/$(PKG_NAME)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call HostBuild,luajit))
|
$(eval $(call HostBuild,luajit))
|
||||||
|
|
|
@ -42,8 +42,8 @@ endef
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) all \
|
$(MAKE) -C $(PKG_BUILD_DIR) all \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
LUA="$(STAGING_DIR)/host/bin/lua" \
|
LUA="$(STAGING_DIR_HOSTPKG)/bin/lua" \
|
||||||
LUAC="$(STAGING_DIR)/host/bin/luac" \
|
LUAC="$(STAGING_DIR_HOSTPKG)/bin/luac" \
|
||||||
OPT_FLAGS="$(TARGET_CFLAGS) --std=c99 -Dpthread_yield=sched_yield"
|
OPT_FLAGS="$(TARGET_CFLAGS) --std=c99 -Dpthread_yield=sched_yield"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ endef
|
||||||
CONFIGURE_ARGS = \
|
CONFIGURE_ARGS = \
|
||||||
--prefix=$(CONFIGURE_PREFIX) \
|
--prefix=$(CONFIGURE_PREFIX) \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--with-lua=$(STAGING_DIR)/host
|
--with-lua=$(STAGING_DIR_HOSTPKG)
|
||||||
|
|
||||||
CONFIGURE_VARS = \
|
CONFIGURE_VARS = \
|
||||||
LUAROCKS_UNAME_S="Linux" \
|
LUAROCKS_UNAME_S="Linux" \
|
||||||
|
|
|
@ -72,7 +72,7 @@ HOST_CONFIGURE_VARS:=
|
||||||
HOST_CONFIGURE_ARGS:= \
|
HOST_CONFIGURE_ARGS:= \
|
||||||
--dest-os=linux \
|
--dest-os=linux \
|
||||||
--without-snapshot \
|
--without-snapshot \
|
||||||
--prefix=$(HOST_BUILD_PREFIX)
|
--prefix=$(STAGING_DIR_HOSTPKG)
|
||||||
|
|
||||||
HOST_CONFIGURE_CMD:=python ./configure
|
HOST_CONFIGURE_CMD:=python ./configure
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ HOST_BUILD_DEPENDS:=perl/host expat/host
|
||||||
|
|
||||||
EXPAT_LIBPATH:=$(STAGING_DIR)/usr/lib
|
EXPAT_LIBPATH:=$(STAGING_DIR)/usr/lib
|
||||||
EXPAT_INCPATH=$(STAGING_DIR)/usr/include
|
EXPAT_INCPATH=$(STAGING_DIR)/usr/include
|
||||||
HOST_EXPAT_LIBPATH:=$(STAGING_DIR)/host/lib
|
HOST_EXPAT_LIBPATH:=$(STAGING_DIR_HOSTPKG)/lib
|
||||||
HOST_EXPAT_INCPATH=$(STAGING_DIR)/host/include
|
HOST_EXPAT_INCPATH=$(STAGING_DIR_HOSTPKG)/include
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
|
@ -35,7 +35,7 @@ PKG_BUILD_PARALLEL:=1
|
||||||
HOST_BUILD_PARALLEL:=1
|
HOST_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
# Variables used during configuration/build
|
# Variables used during configuration/build
|
||||||
HOST_PERL_PREFIX:=$(STAGING_DIR)/host/usr
|
HOST_PERL_PREFIX:=$(STAGING_DIR_HOSTPKG)/usr
|
||||||
|
|
||||||
# Filter -g3, it will break Compress-Raw-Zlib
|
# Filter -g3, it will break Compress-Raw-Zlib
|
||||||
TARGET_CFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CFLAGS))
|
TARGET_CFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CFLAGS))
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
PERL_VERSION:=5.22
|
PERL_VERSION:=5.22
|
||||||
|
|
||||||
# Build environment
|
# Build environment
|
||||||
HOST_PERL_PREFIX:=$(STAGING_DIR)/host/usr
|
HOST_PERL_PREFIX:=$(STAGING_DIR_HOSTPKG)/usr
|
||||||
ifneq ($(CONFIG_USE_GLIBC),)
|
ifneq ($(CONFIG_USE_GLIBC),)
|
||||||
EXTRA_LIBS:=bsd
|
EXTRA_LIBS:=bsd
|
||||||
EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
|
EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
|
||||||
endif
|
endif
|
||||||
PERL_CMD:=$(STAGING_DIR)/host/usr/bin/perl$(PERL_VERSION).0
|
PERL_CMD:=$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION).0
|
||||||
|
|
||||||
MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
|
MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
|
||||||
ifdef CONFIG_PERL_THREADS
|
ifdef CONFIG_PERL_THREADS
|
||||||
|
@ -26,7 +26,7 @@ define perlmod/host/relink
|
||||||
rm -f $(1)/Makefile.aperl
|
rm -f $(1)/Makefile.aperl
|
||||||
$(MAKE) -C $(1) perl
|
$(MAKE) -C $(1) perl
|
||||||
$(CP) $(1)/perl $(PERL_CMD)
|
$(CP) $(1)/perl $(PERL_CMD)
|
||||||
$(CP) $(1)/perl $(STAGING_DIR)/host/usr/bin/perl
|
$(CP) $(1)/perl $(STAGING_DIR_HOSTPKG)/usr/bin/perl
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define perlmod/host/Configure
|
define perlmod/host/Configure
|
||||||
|
|
|
@ -443,7 +443,7 @@ CONFIGURE_VARS+= \
|
||||||
ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no) \
|
ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no) \
|
||||||
php_cv_cc_rpath="no" \
|
php_cv_cc_rpath="no" \
|
||||||
iconv_impl_name="gnu_libiconv" \
|
iconv_impl_name="gnu_libiconv" \
|
||||||
ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
|
ac_cv_php_xml2_config_path="$(STAGING_DIR_HOSTPKG)/bin/xml2-config" \
|
||||||
|
|
||||||
define Package/php7/conffiles
|
define Package/php7/conffiles
|
||||||
/etc/php.ini
|
/etc/php.ini
|
||||||
|
|
|
@ -45,7 +45,7 @@ define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(HOST_BUILD_PREFIX)")
|
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
|
|
|
@ -69,7 +69,7 @@ CONFIG_PACKAGE_python-packages-envs:=$(call qstrip,$(CONFIG_PACKAGE_python-packa
|
||||||
CONFIG_PACKAGE_python-packages-extra-deps:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-extra-deps))
|
CONFIG_PACKAGE_python-packages-extra-deps:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-extra-deps))
|
||||||
CONFIG_PACKAGE_python-packages-pip-opts:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-pip-opts))
|
CONFIG_PACKAGE_python-packages-pip-opts:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-pip-opts))
|
||||||
|
|
||||||
HOST_PYTHON_PIP:=$(STAGING_DIR)/host/bin/pip$(PYTHON_VERSION)
|
HOST_PYTHON_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON_VERSION)
|
||||||
|
|
||||||
decr=$(word $(1),0 1 2 3 4 5 6 7 8 9 10)
|
decr=$(word $(1),0 1 2 3 4 5 6 7 8 9 10)
|
||||||
recur=$(if $(subst 0,,$(2)),$(call recur,$(1),$(call decr,$(2)),$(call $(1)$(2),$(3))),$(3))
|
recur=$(if $(subst 0,,$(2)),$(call recur,$(1),$(call decr,$(2)),$(call $(1)$(2),$(3))),$(3))
|
||||||
|
@ -92,7 +92,7 @@ HOST_PYTHON_PIP_INSTALL=$(HOST_PYTHON_PIP) install \
|
||||||
$(if $(CONFIG_PACKAGE_python-packages-index-url), --index-url $(CONFIG_PACKAGE_python-packages-index-url)) \
|
$(if $(CONFIG_PACKAGE_python-packages-index-url), --index-url $(CONFIG_PACKAGE_python-packages-index-url)) \
|
||||||
$(if $(CONFIG_PACKAGE_python-packages-pip-opts), $(CONFIG_PACKAGE_python-packages-pip-opts)) \
|
$(if $(CONFIG_PACKAGE_python-packages-pip-opts), $(CONFIG_PACKAGE_python-packages-pip-opts)) \
|
||||||
|
|
||||||
HOST_PYTHON_PIP_INSTALL_HOST:=$(call HOST_PYTHON_PIP_INSTALL,$(STAGING_DIR)/host,"")
|
HOST_PYTHON_PIP_INSTALL_HOST:=$(call HOST_PYTHON_PIP_INSTALL,$(STAGING_DIR_HOSTPKG),"")
|
||||||
HOST_PYTHON_PIP_INSTALL_TARGET=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/$(call req2dir,$(pkg)),/usr)
|
HOST_PYTHON_PIP_INSTALL_TARGET=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/$(call req2dir,$(pkg)),/usr)
|
||||||
HOST_PYTHON_PIP_INSTALL_CLEANUP:=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/_cleanup,/usr)
|
HOST_PYTHON_PIP_INSTALL_CLEANUP:=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/_cleanup,/usr)
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(call Build/Compile/HostPyMod,,\
|
$(call Build/Compile/HostPyMod,,\
|
||||||
install --root="$(STAGING_DIR)/host" --prefix="" \
|
install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
|
||||||
--single-version-externally-managed \
|
--single-version-externally-managed \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -46,7 +46,7 @@ define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(HOST_BUILD_PREFIX)")
|
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
|
|
|
@ -47,7 +47,7 @@ define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(HOST_BUILD_PREFIX)")
|
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
|
|
|
@ -63,7 +63,7 @@ endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(call Build/Compile/HostPyMod,,\
|
$(call Build/Compile/HostPyMod,,\
|
||||||
install --root="$(HOST_BUILD_PREFIX)" --prefix="" \
|
install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
|
||||||
--single-version-externally-managed \
|
--single-version-externally-managed \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -73,7 +73,7 @@ endef
|
||||||
|
|
||||||
define HostPy/Compile/Default
|
define HostPy/Compile/Default
|
||||||
$(call Build/Compile/HostPyMod,,\
|
$(call Build/Compile/HostPyMod,,\
|
||||||
install --root="$(HOST_BUILD_PREFIX)" --prefix="" \
|
install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
|
||||||
--single-version-externally-managed \
|
--single-version-externally-managed \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -73,7 +73,7 @@ endef
|
||||||
|
|
||||||
define HostPy3/Compile/Default
|
define HostPy3/Compile/Default
|
||||||
$(call Build/Compile/HostPy3Mod,,\
|
$(call Build/Compile/HostPy3Mod,,\
|
||||||
install --root="$(HOST_BUILD_PREFIX)" --prefix="" \
|
install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
|
||||||
--single-version-externally-managed \
|
--single-version-externally-managed \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -90,7 +90,7 @@ endef
|
||||||
define Host/Install
|
define Host/Install
|
||||||
# When ruby version is updated, make install asks in some cases before replace
|
# When ruby version is updated, make install asks in some cases before replace
|
||||||
# an existing different file. Remove them before install and avoid the interaction
|
# an existing different file. Remove them before install and avoid the interaction
|
||||||
rm -f $(HOST_BUILD_PREFIX)/bin/rake
|
rm -f $(STAGING_DIR_HOSTPKG)/bin/rake
|
||||||
$(call Host/Install/Default)
|
$(call Host/Install/Default)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -417,11 +417,11 @@ endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_DIR) \
|
$(INSTALL_DIR) \
|
||||||
$(STAGING_DIR)/host/bin
|
$(STAGING_DIR_HOSTPKG)/bin
|
||||||
|
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(HOST_BUILD_DIR)/tools/build/src/engine/bin.*/b2 \
|
$(HOST_BUILD_DIR)/tools/build/src/engine/bin.*/b2 \
|
||||||
$(STAGING_DIR)/host/bin/
|
$(STAGING_DIR_HOSTPKG)/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/boost/Default/install
|
define Package/boost/Default/install
|
||||||
|
|
|
@ -61,7 +61,7 @@ CONFIGURE_ARGS += \
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
glib_cv_stack_grows=no \
|
glib_cv_stack_grows=no \
|
||||||
glib_cv_uscore=no \
|
glib_cv_uscore=no \
|
||||||
ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR)/host/bin/glib-genmarshal \
|
ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOSTPKG)/bin/glib-genmarshal \
|
||||||
ac_cv_func_mmap_fixed_mapped=yes \
|
ac_cv_func_mmap_fixed_mapped=yes \
|
||||||
ac_cv_func_posix_getpwuid_r=yes \
|
ac_cv_func_posix_getpwuid_r=yes \
|
||||||
ac_cv_func_posix_getgrgid_r=yes
|
ac_cv_func_posix_getgrgid_r=yes
|
||||||
|
|
|
@ -54,7 +54,7 @@ CONFIGURE_ARGS += \
|
||||||
--without-iconv
|
--without-iconv
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
LIBPNG12_CONFIG="$(STAGING_DIR)/host/bin/libpng12-config" \
|
LIBPNG12_CONFIG="$(STAGING_DIR_HOSTPKG)/bin/libpng12-config" \
|
||||||
ac_cv_header_iconv_h=no
|
ac_cv_header_iconv_h=no
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
|
|
@ -57,10 +57,10 @@ define Build/InstallDev
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
||||||
$(1)/usr/lib/pkgconfig/
|
$(1)/usr/lib/pkgconfig/
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/host/share/vala-0.30/vapi/
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
$(PKG_INSTALL_DIR)/usr/share/vala/vapi/* \
|
$(PKG_INSTALL_DIR)/usr/share/vala/vapi/* \
|
||||||
$(STAGING_DIR)/host/share/vala-0.30/vapi
|
$(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libgee/install
|
define Package/libgee/install
|
||||||
|
|
|
@ -51,7 +51,7 @@ define Build/InstallDev
|
||||||
$(SED) \
|
$(SED) \
|
||||||
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
||||||
$(2)/bin/gpg-error-config
|
$(2)/bin/gpg-error-config
|
||||||
ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
|
ln -sf $(STAGING_DIR_HOSTPKG)/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
|
|
|
@ -28,8 +28,8 @@ include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
|
CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
|
||||||
-DENABLEEXAMPLES=0 \
|
-DENABLEEXAMPLES=0 \
|
||||||
-DNODE_EXECUTABLE=$(STAGING_DIR)/host/bin/node \
|
-DNODE_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/bin/node \
|
||||||
-DSWIG_DIR=$(STAGING_DIR)/host/bin
|
-DSWIG_DIR=$(STAGING_DIR_HOSTPKG)/bin
|
||||||
|
|
||||||
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/node
|
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/node
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,8 @@ UPM_MODULES:= \
|
||||||
th02 tm1637 tsl2561 ttp223 ublox6 uln200xa waterlevel wheelencoder wt5001 yg1006 zfm20
|
th02 tm1637 tsl2561 ttp223 ublox6 uln200xa waterlevel wheelencoder wt5001 yg1006 zfm20
|
||||||
|
|
||||||
CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
|
CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
|
||||||
-DNODE_EXECUTABLE=$(STAGING_DIR)/host/bin/node \
|
-DNODE_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/bin/node \
|
||||||
-DSWIG_DIR=$(STAGING_DIR)/host/bin
|
-DSWIG_DIR=$(STAGING_DIR_HOSTPKG)/bin
|
||||||
|
|
||||||
define Package/libupm/Default
|
define Package/libupm/Default
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
|
|
|
@ -83,7 +83,7 @@ define Build/InstallDev/Xslt
|
||||||
$(PKG_INSTALL_DIR)/usr/bin/xslt-config \
|
$(PKG_INSTALL_DIR)/usr/bin/xslt-config \
|
||||||
$(2)/bin/
|
$(2)/bin/
|
||||||
|
|
||||||
ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
|
ln -sf $(STAGING_DIR_HOSTPKG)/bin/xslt-config $(1)/usr/bin/xslt-config
|
||||||
|
|
||||||
$(SED) \
|
$(SED) \
|
||||||
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
||||||
|
|
|
@ -63,8 +63,8 @@ define Host/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/host/bin
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
|
||||||
$(CP) $(HOST_BUILD_DIR)/tools/bin/filterh $(STAGING_DIR)/host/bin/
|
$(CP) $(HOST_BUILD_DIR)/tools/bin/filterh $(STAGING_DIR_HOSTPKG)/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
|
|
|
@ -14,7 +14,7 @@ diff -rupN libzdb-3.0.orig/Makefile.am libzdb-3.0/Makefile.am
|
||||||
RE2C = @RE2C@
|
RE2C = @RE2C@
|
||||||
RE2CFLAGS = -b
|
RE2CFLAGS = -b
|
||||||
-FILTERH = ./tools/bin/filterh
|
-FILTERH = ./tools/bin/filterh
|
||||||
+FILTERH = $(STAGING_DIR)/host/bin/filterh
|
+FILTERH = $(STAGING_DIR_HOSTPKG)/bin/filterh
|
||||||
|
|
||||||
AM_CPPFLAGS = $(CPPFLAGS) $(DBCPPFLAGS)
|
AM_CPPFLAGS = $(CPPFLAGS) $(DBCPPFLAGS)
|
||||||
AM_CPPFLAGS += -Isrc -Isrc/util -Isrc/net -Isrc/db -Isrc/exceptions
|
AM_CPPFLAGS += -Isrc -Isrc/util -Isrc/net -Isrc/db -Isrc/exceptions
|
||||||
|
|
|
@ -147,14 +147,14 @@ endef
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/bin/
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/bin/
|
||||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/bin/pg_config/pg_config $(STAGING_DIR)/usr/bin/
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/bin/pg_config/pg_config $(STAGING_DIR)/usr/bin/
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/host/bin/
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
|
||||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg $(STAGING_DIR)/host/bin/
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg $(STAGING_DIR_HOSTPKG)/bin/
|
||||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/timezone/zic $(STAGING_DIR)/host/bin/
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/timezone/zic $(STAGING_DIR_HOSTPKG)/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(Build/Configure/Default)
|
$(Build/Configure/Default)
|
||||||
$(SED) 's@ECPG = ../../preproc/ecpg@ECPG = $(STAGING_DIR)/host/bin/ecpg@' $(PKG_BUILD_DIR)/src/interfaces/ecpg/test/Makefile.regress
|
$(SED) 's@ECPG = ../../preproc/ecpg@ECPG = $(STAGING_DIR_HOSTPKG)/bin/ecpg@' $(PKG_BUILD_DIR)/src/interfaces/ecpg/test/Makefile.regress
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC) -lpthread
|
TARGET_CFLAGS += $(FPIC) -lpthread
|
||||||
|
|
|
@ -41,7 +41,7 @@ define Package/protobuf/description
|
||||||
of its internal RPC protocols and file formats.
|
of its internal RPC protocols and file formats.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += --with-protoc=$(STAGING_DIR)/host/bin/protoc
|
CONFIGURE_ARGS += --with-protoc=$(STAGING_DIR_HOSTPKG)/bin/protoc
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) \
|
$(INSTALL_DIR) \
|
||||||
|
|
|
@ -56,13 +56,13 @@ define Build/InstallDev
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
||||||
$(1)/usr/lib/pkgconfig/
|
$(1)/usr/lib/pkgconfig/
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/host/share/vala-0.30/vapi/
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/
|
||||||
# Note: this are compiled elsewhere because grilo refuses to
|
# Note: this are compiled elsewhere because grilo refuses to
|
||||||
# generate VAPI files unless gobject-introspection exists;
|
# generate VAPI files unless gobject-introspection exists;
|
||||||
# OpenWrt does not yet have a gobject-introspection package.
|
# OpenWrt does not yet have a gobject-introspection package.
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
./files/*.vapi \
|
./files/*.vapi \
|
||||||
$(STAGING_DIR)/host/share/vala-0.30/vapi
|
$(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/grilo/install
|
define Package/grilo/install
|
||||||
|
|
|
@ -93,8 +93,8 @@ MAKE_FLAGS += \
|
||||||
OPT="$(TARGET_CFLAGS)" \
|
OPT="$(TARGET_CFLAGS)" \
|
||||||
INSTALLSUID="install -m 4755" \
|
INSTALLSUID="install -m 4755" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
RPCGEN_PATH=$(STAGING_DIR)/host/bin/rpcgen \
|
RPCGEN_PATH=$(STAGING_DIR_HOSTPKG)/bin/rpcgen \
|
||||||
RPCGEN=$(STAGING_DIR)/host/bin/rpcgen
|
RPCGEN=$(STAGING_DIR_HOSTPKG)/bin/rpcgen
|
||||||
|
|
||||||
HOST_CFLAGS += -Dlinux
|
HOST_CFLAGS += -Dlinux
|
||||||
|
|
||||||
|
@ -125,8 +125,8 @@ define Host/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/host/bin
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
|
||||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/rpcgen/rpcgen $(STAGING_DIR)/host/bin/rpcgen
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/rpcgen/rpcgen $(STAGING_DIR_HOSTPKG)/bin/rpcgen
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nfs-kernel-server/install
|
define Package/nfs-kernel-server/install
|
||||||
|
|
|
@ -50,7 +50,7 @@ define Build/Configure
|
||||||
# this is *NOT* GNU autoconf stuff
|
# this is *NOT* GNU autoconf stuff
|
||||||
(cd $(PKG_BUILD_DIR); ./configure \
|
(cd $(PKG_BUILD_DIR); ./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--with-lua="$(STAGING_DIR)/host/bin" \
|
--with-lua="$(STAGING_DIR_HOSTPKG)/bin" \
|
||||||
--with-lua-include="$(STAGING_DIR)/usr/include" \
|
--with-lua-include="$(STAGING_DIR)/usr/include" \
|
||||||
--with-lua-lib="$(STAGING_DIR)/usr/lib" \
|
--with-lua-lib="$(STAGING_DIR)/usr/lib" \
|
||||||
--cflags="$(TARGET_CFLAGS)" \
|
--cflags="$(TARGET_CFLAGS)" \
|
||||||
|
|
|
@ -11,12 +11,12 @@ diff -rupN seafile-ccnet-5.1.1.orig/lib/Makefile.am seafile-ccnet-5.1.1/lib/Make
|
||||||
ccnet-object.h: ${ccnet_object_define}
|
ccnet-object.h: ${ccnet_object_define}
|
||||||
rm -f $@
|
rm -f $@
|
||||||
- valac --pkg posix ${ccnet_object_define} -C -H ccnet-object.h
|
- valac --pkg posix ${ccnet_object_define} -C -H ccnet-object.h
|
||||||
+ "$(STAGING_DIR)/host/bin/valac" --pkg posix ${ccnet_object_define} -C -H ccnet-object.h
|
+ "$(STAGING_DIR_HOSTPKG)/bin/valac" --pkg posix ${ccnet_object_define} -C -H ccnet-object.h
|
||||||
|
|
||||||
ccnetobj.c: ${ccnet_object_define}
|
ccnetobj.c: ${ccnet_object_define}
|
||||||
rm -f $@
|
rm -f $@
|
||||||
- valac -C --pkg posix ${ccnet_object_define}
|
- valac -C --pkg posix ${ccnet_object_define}
|
||||||
+ "$(STAGING_DIR)/host/bin/valac" -C --pkg posix ${ccnet_object_define}
|
+ "$(STAGING_DIR_HOSTPKG)/bin/valac" -C --pkg posix ${ccnet_object_define}
|
||||||
|
|
||||||
searpc_gen = searpc-signature.h searpc-marshal.h
|
searpc_gen = searpc-signature.h searpc-marshal.h
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ diff -rupN seafile-server-5.1.1.orig/lib/Makefile.am seafile-server-5.1.1/lib/Ma
|
||||||
seafile-object.h: ${seafile_object_define}
|
seafile-object.h: ${seafile_object_define}
|
||||||
rm -f $@
|
rm -f $@
|
||||||
- valac --pkg posix ${seafile_object_define} -C -H seafile-object.h
|
- valac --pkg posix ${seafile_object_define} -C -H seafile-object.h
|
||||||
+ "$(STAGING_DIR)/host/bin/valac" --pkg posix ${seafile_object_define} -C -H seafile-object.h
|
+ "$(STAGING_DIR_HOSTPKG)/bin/valac" --pkg posix ${seafile_object_define} -C -H seafile-object.h
|
||||||
|
|
||||||
DISTCLEANFILES = ${searpc_gen}
|
DISTCLEANFILES = ${searpc_gen}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ diff -rupN seafile-server-5.1.1.orig/lib/Makefile.am seafile-server-5.1.1/lib/Ma
|
||||||
@rm -f vala.tmp
|
@rm -f vala.tmp
|
||||||
@touch vala.tmp
|
@touch vala.tmp
|
||||||
- valac -C --pkg posix $^
|
- valac -C --pkg posix $^
|
||||||
+ "$(STAGING_DIR)/host/bin/valac" -C --pkg posix $^
|
+ "$(STAGING_DIR_HOSTPKG)/bin/valac" -C --pkg posix $^
|
||||||
@mv -f vala.tmp $@
|
@mv -f vala.tmp $@
|
||||||
|
|
||||||
${seafile_object_gen}: vala.stamp
|
${seafile_object_gen}: vala.stamp
|
||||||
|
|
|
@ -122,11 +122,11 @@ HOST_CONFIGURE_ARGS+= \
|
||||||
--disable-verbose-mode \
|
--disable-verbose-mode \
|
||||||
--disable-xml-docs \
|
--disable-xml-docs \
|
||||||
--with-dbus-user=root \
|
--with-dbus-user=root \
|
||||||
--with-dbus-daemondir="$(STAGIND_DIR)/host/bin" \
|
--with-dbus-daemondir="$(STAGING_DIR_HOSTPKG)/bin" \
|
||||||
--with-system-socket="$(STAGING_DIR)/host/var/run/dbus/system_bus_socket" \
|
--with-system-socket="$(STAGING_DIR_HOSTPKG)/var/run/dbus/system_bus_socket" \
|
||||||
--with-system-pid-file="$(STAGING_DIR)/host/var/run/dbus.pid" \
|
--with-system-pid-file="$(STAGING_DIR_HOSTPKG)/var/run/dbus.pid" \
|
||||||
--without-x \
|
--without-x \
|
||||||
--libexecdir="$(STAGING_DIR)/host/lib/dbus-1"
|
--libexecdir="$(STAGING_DIR_HOSTPKG)/lib/dbus-1"
|
||||||
|
|
||||||
HOST_CONFIGURE_VARS+= \
|
HOST_CONFIGURE_VARS+= \
|
||||||
ac_cv_have_abstract_sockets="yes" \
|
ac_cv_have_abstract_sockets="yes" \
|
||||||
|
|
Loading…
Reference in a new issue