mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	build: fix empty SUBTARGET in json files
Some targets like kirkwood or omap don't use a subtarget which results in a malformed JSON info file. Instead of having a valid value like `"target": "ath79/tiny"` for these targets the value is `"target": "kirkwood/"`. This patch uses the same if condition to use `generic` if the subtarget is empty. Tested for the kirkwood target. Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
		
							parent
							
								
									cd5dbba905
								
							
						
					
					
						commit
						73f3ad1df2
					
				@ -588,7 +588,7 @@ define Device/Build/image
 | 
			
		||||
		DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \
 | 
			
		||||
		DEVICE_TITLE="$(DEVICE_TITLE)" \
 | 
			
		||||
		TARGET="$(BOARD)" \
 | 
			
		||||
		SUBTARGET="$(SUBTARGET)" \
 | 
			
		||||
		SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \
 | 
			
		||||
		VERSION_NUMBER="$(VERSION_NUMBER)" \
 | 
			
		||||
		VERSION_CODE="$(VERSION_CODE)" \
 | 
			
		||||
		SUPPORTED_DEVICES="$(SUPPORTED_DEVICES)" \
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user