mirror of
				https://github.com/optim-enterprises-bv/openwrt-ipq.git
				synced 2025-10-31 02:08:28 +00:00 
			
		
		
		
	imagebuilder: fix copying of missing kernel/libc
Those packages were not copied due to OPKG using an underscore while APK uses dashes. Remove that char to copy kernel/libc for either APK/OPKG. Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
		 Paul Spooren
					Paul Spooren
				
			
				
					committed by
					
						 Christian Marangi
						Christian Marangi
					
				
			
			
				
	
			
			
			 Christian Marangi
						Christian Marangi
					
				
			
						parent
						
							5ba701fe19
						
					
				
				
					commit
					f303471ae9
				
			| @@ -71,7 +71,7 @@ endif | |||||||
| ifeq ($(CONFIG_BUILDBOT),) | ifeq ($(CONFIG_BUILDBOT),) | ||||||
|   ifeq ($(CONFIG_IB_STANDALONE),) |   ifeq ($(CONFIG_IB_STANDALONE),) | ||||||
| 	$(FIND) $(call FeedPackageDir,libc) -type f \ | 	$(FIND) $(call FeedPackageDir,libc) -type f \ | ||||||
| 		\( -name 'libc_*.$(PACKAGE_SUFFIX)' -or -name 'kernel_*.$(PACKAGE_SUFFIX)' -or -name 'kmod-*.$(PACKAGE_SUFFIX)' \) \ | 		\( -name 'libc*.$(PACKAGE_SUFFIX)' -or -name 'kernel*.$(PACKAGE_SUFFIX)' -or -name 'kmod-*.$(PACKAGE_SUFFIX)' \) \ | ||||||
| 		-exec $(CP) -t $(PKG_BUILD_DIR)/packages {} + | 		-exec $(CP) -t $(PKG_BUILD_DIR)/packages {} + | ||||||
|   else |   else | ||||||
| 	$(FIND) $(wildcard $(PACKAGE_SUBDIRS)) -type f -name '*.$(PACKAGE_SUFFIX)' \ | 	$(FIND) $(wildcard $(PACKAGE_SUBDIRS)) -type f -name '*.$(PACKAGE_SUFFIX)' \ | ||||||
| @@ -79,7 +79,7 @@ ifeq ($(CONFIG_BUILDBOT),) | |||||||
|   endif |   endif | ||||||
| else | else | ||||||
| 	$(FIND) $(call FeedPackageDir,libc) -type f \ | 	$(FIND) $(call FeedPackageDir,libc) -type f \ | ||||||
| 		\( -name 'libc_*.$(PACKAGE_SUFFIX)' -or -name 'kernel_*.$(PACKAGE_SUFFIX)' \) \ | 		\( -name 'libc*.$(PACKAGE_SUFFIX)' -or -name 'kernel*.$(PACKAGE_SUFFIX)' \) \ | ||||||
| 		-exec $(CP) -t $(IB_LDIR)/ {} + | 		-exec $(CP) -t $(IB_LDIR)/ {} + | ||||||
| endif | endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -228,8 +228,8 @@ ifeq ($(CONFIG_USE_APK),) | |||||||
| 	$(OPKG) install $(firstword $(wildcard $(LINUX_DIR)/kernel_*.ipk $(PACKAGE_DIR)/kernel_*.ipk)) | 	$(OPKG) install $(firstword $(wildcard $(LINUX_DIR)/kernel_*.ipk $(PACKAGE_DIR)/kernel_*.ipk)) | ||||||
| 	$(OPKG) install $(BUILD_PACKAGES) | 	$(OPKG) install $(BUILD_PACKAGES) | ||||||
| else | else | ||||||
| 	$(APK) add --no-scripts $(firstword $(wildcard $(LINUX_DIR)/libc-*.apk $(PACKAGE_DIR)/libc_*.apk)) | 	$(APK) add --no-scripts $(firstword $(wildcard $(LINUX_DIR)/libc-*.apk $(PACKAGE_DIR)/libc-*.apk)) | ||||||
| 	$(APK) add --no-scripts $(firstword $(wildcard $(LINUX_DIR)/kernel-*.apk $(PACKAGE_DIR)/kernel_*.apk)) | 	$(APK) add --no-scripts $(firstword $(wildcard $(LINUX_DIR)/kernel-*.apk $(PACKAGE_DIR)/kernel-*.apk)) | ||||||
| 	$(APK) add --no-scripts $(BUILD_PACKAGES) | 	$(APK) add --no-scripts $(BUILD_PACKAGES) | ||||||
| endif | endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user