aboutsummaryrefslogtreecommitdiffstats
path: root/target/imagebuilder/Makefile
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2020-09-15 12:44:36 -1000
committerDaniel Golle <daniel@makrotopia.org>2020-10-30 00:39:09 +0000
commit2999f810ff2c968e6bbe5b2fd32cfbd80f83570a (patch)
tree41452333f2f17af0a58896ffd675cad2b654e6ab /target/imagebuilder/Makefile
parent071514c6419151674d50a4607dc09303f54014ce (diff)
downloadupstream-2999f810ff2c968e6bbe5b2fd32cfbd80f83570a.tar.gz
upstream-2999f810ff2c968e6bbe5b2fd32cfbd80f83570a.tar.bz2
upstream-2999f810ff2c968e6bbe5b2fd32cfbd80f83570a.zip
build,IB: include kmods only in local builds
The buildbots generate a kmod archive which should be used instead of a local copy. This is possible due to the introduction of a kernelversion specific feed. This commit adds the ability of using only signed package feeds. Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'target/imagebuilder/Makefile')
-rw-r--r--target/imagebuilder/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile
index fb6c26b482..1575f59b61 100644
--- a/target/imagebuilder/Makefile
+++ b/target/imagebuilder/Makefile
@@ -38,23 +38,27 @@ $(BIN_DIR)/$(IB_NAME).tar.xz: clean
ifeq ($(CONFIG_IB_STANDALONE),)
echo '## Remote package repositories' >> $(PKG_BUILD_DIR)/repositories.conf
$(call FeedSourcesAppend,$(PKG_BUILD_DIR)/repositories.conf)
+ $(VERSION_SED_SCRIPT) $(PKG_BUILD_DIR)/repositories.conf
endif
+ifeq ($(CONFIG_BUILDBOT),)
+ $(INSTALL_DIR) $(PKG_BUILD_DIR)/packages
echo '' >> $(PKG_BUILD_DIR)/repositories.conf
echo '## This is the local package repository, do not remove!' >> $(PKG_BUILD_DIR)/repositories.conf
echo 'src imagebuilder file:packages' >> $(PKG_BUILD_DIR)/repositories.conf
- $(VERSION_SED_SCRIPT) $(PKG_BUILD_DIR)/repositories.conf
-
-ifeq ($(CONFIG_IB_STANDALONE),)
- (cd $(call FeedPackageDir,libc); $(FIND) -type f -name 'libc_*.ipk' -or -name 'kernel_*.ipk' -or -name 'kmod-*.ipk') | \
- while read path; do \
- mkdir -p "$(PKG_BUILD_DIR)/packages/$${path%/*}"; \
- cp "$(call FeedPackageDir,libc)/$$path" "$(PKG_BUILD_DIR)/packages/$$path"; \
- done
+ ifeq ($(CONFIG_IB_STANDALONE),)
+ $(FIND) $(call FeedPackageDir,libc) -type f \
+ \( -name 'libc_*.ipk' -or -name 'kernel_*.ipk' -or -name 'kmod-*.ipk' \) \
+ -exec $(CP) -t $(PKG_BUILD_DIR)/packages {} +
+ else
+ $(FIND) $(wildcard $(PACKAGE_SUBDIRS)) -type f -name '*.ipk' \
+ -exec $(CP) -t $(PKG_BUILD_DIR)/packages/ {} +
+ endif
else
- $(INSTALL_DIR) $(PKG_BUILD_DIR)/packages
- find $(wildcard $(PACKAGE_SUBDIRS)) -type f -name '*.ipk' -exec $(CP) {} $(PKG_BUILD_DIR)/packages/ \;
+ $(FIND) $(call FeedPackageDir,libc) -type f \
+ \( -name 'libc_*.ipk' -or -name 'kernel_*.ipk' \) \
+ -exec $(CP) -t $(IB_LDIR)/ {} +
endif
$(CP) $(TOPDIR)/target/linux $(PKG_BUILD_DIR)/target/