mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-31 05:54:26 -04:00 
			
		
		
		
	ar71xx: image: add IMAGE_PROFILE variable
Ensures that the 'Default' images are generated even if the subtarget has no profiles. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38635
This commit is contained in:
		
							parent
							
								
									b2bc45d21e
								
							
						
					
					
						commit
						f0a877e5eb
					
				| @ -7,6 +7,8 @@ | |||||||
| include $(TOPDIR)/rules.mk | include $(TOPDIR)/rules.mk | ||||||
| include $(INCLUDE_DIR)/image.mk | include $(INCLUDE_DIR)/image.mk | ||||||
| 
 | 
 | ||||||
|  | IMAGE_PROFILE:=$(if $(PROFILE),$(PROFILE),Default) | ||||||
|  | 
 | ||||||
| JFFS2_BLOCKSIZE = 64k 128k 256k | JFFS2_BLOCKSIZE = 64k 128k 256k | ||||||
| 
 | 
 | ||||||
| define imgname | define imgname | ||||||
| @ -1010,7 +1012,7 @@ define Image/Build/squashfs | |||||||
| endef | endef | ||||||
| 
 | 
 | ||||||
| define Image/Build/Initramfs | define Image/Build/Initramfs | ||||||
| 	$(call Image/Build/Profile/$(PROFILE),initramfs) | 	$(call Image/Build/Profile/$(IMAGE_PROFILE),initramfs) | ||||||
| endef | endef | ||||||
| 
 | 
 | ||||||
| define Image/Prepare | define Image/Prepare | ||||||
| @ -1022,13 +1024,13 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) | |||||||
| 	$(call Image/BuildLoader,generic,elf,,,-initramfs) | 	$(call Image/BuildLoader,generic,elf,,,-initramfs) | ||||||
| endif | endif | ||||||
| 	$(call Image/BuildLoader,generic,elf) | 	$(call Image/BuildLoader,generic,elf) | ||||||
| 	$(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(PROFILE)),loader) | 	$(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(IMAGE_PROFILE)),loader) | ||||||
| endef | endef | ||||||
| 
 | 
 | ||||||
| define Image/Build | define Image/Build | ||||||
| 	$(call Image/Build/$(1)) | 	$(call Image/Build/$(1)) | ||||||
| 	dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync | 	dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync | ||||||
| 	$(call Image/Build/Profile/$(PROFILE),$(1)) | 	$(call Image/Build/Profile/$(IMAGE_PROFILE),$(1)) | ||||||
| endef | endef | ||||||
| 
 | 
 | ||||||
| $(eval $(call BuildImage)) | $(eval $(call BuildImage)) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user