diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-04-22 12:22:57 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-04-22 12:22:57 +0200 |
commit | b9466382b54892c186dea356e701b5ecec86d8aa (patch) | |
tree | 60c20c6c84143be925e842de3ee7d24d796250d4 /target/imagebuilder/Makefile | |
parent | 9531e0fce5766f412b8aefb97ee7d94f36fa9507 (diff) | |
download | mtk-20170518-b9466382b54892c186dea356e701b5ecec86d8aa.zip mtk-20170518-b9466382b54892c186dea356e701b5ecec86d8aa.tar.gz mtk-20170518-b9466382b54892c186dea356e701b5ecec86d8aa.tar.bz2 |
imagebuilder: use correct package directory when bundling kmods and libc
The libc and kernel package files moved since the introduction of shared
packages and the changed output directory layout. This causes the generated
ImageBuilder archive to lack the necessary "libc" and "kernel" meta packages,
leading to opkg install errors later on.
Use the FeedPackageDir macro to figure out the proper source directory to use.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/imagebuilder/Makefile')
-rw-r--r-- | target/imagebuilder/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index 87f91ce..b49153b 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -47,10 +47,10 @@ endif $(VERSION_SED) $(PKG_BUILD_DIR)/repositories.conf ifeq ($(CONFIG_IB_STANDALONE),) - (cd $(PACKAGE_DIR); $(FIND) -type f -name 'libc_*.ipk' -or -name 'kernel_*.ipk' -or -name 'kmod-*.ipk') | \ + (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 "$(PACKAGE_DIR)/$$path" "$(PKG_BUILD_DIR)/packages/$$path"; \ + cp "$(call FeedPackageDir,libc)/$$path" "$(PKG_BUILD_DIR)/packages/$$path"; \ done else $(INSTALL_DIR) $(PKG_BUILD_DIR)/packages |