build: Fix missing device variables for artifacts
It was reported to me today on IRC, that building of artifacts doesn't
work properly if the concat_cmd references DEVICE_NAME variable. I've
found out, that it's due to missing call of Device/Export in artifacts
building code path, so this patch adds the missing Device/Export call
which in turn exports DEFAULT_DEVICE_VARS into the artifacts
environment.
Fixes: 493c9a3551 ("build: Introduce building of artifacts")
Tested-by: Oskari Lemmela <oskari@lemmela.net>
Reported-by: Oskari Lemmela <oskari@lemmela.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
			
			
This commit is contained in:
		
				
					committed by
					
						
						Christian Lamparter
					
				
			
			
				
	
			
			
			
						parent
						
							be2b61e4f1
						
					
				
				
					commit
					bb23cb1bf2
				
			@@ -527,6 +527,7 @@ endef
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
define Device/Build/artifact
 | 
					define Device/Build/artifact
 | 
				
			||||||
  $$(_TARGET): $(BIN_DIR)/$(IMAGE_PREFIX)-$(1)
 | 
					  $$(_TARGET): $(BIN_DIR)/$(IMAGE_PREFIX)-$(1)
 | 
				
			||||||
 | 
					  $(eval $(call Device/Export,$(KDIR)/tmp/$(IMAGE_PREFIX)-$(1)))
 | 
				
			||||||
  $(KDIR)/tmp/$(IMAGE_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE)
 | 
					  $(KDIR)/tmp/$(IMAGE_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE)
 | 
				
			||||||
	@rm -f $$@
 | 
						@rm -f $$@
 | 
				
			||||||
	$$(call concat_cmd,$(ARTIFACT/$(1)))
 | 
						$$(call concat_cmd,$(ARTIFACT/$(1)))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user