瀏覽代碼

metadata: fixup "board"

currently the "board" parameter contains $(BOARD) which actually results
to `<target>` (like ramips, ar71xx) without subtarget. However, one
actually excepts (not?) to contain BOARD_NAME or DEVICE_NAME.

Signed-off-by: Paul Spooren <[email protected]>
Paul Spooren 6 年之前
父節點
當前提交
26c16aec67
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/image-commands.mk

+ 1 - 1
include/image-commands.mk

@@ -360,7 +360,7 @@ metadata_json = \
 			"dist": "$(call json_quote,$(VERSION_DIST))", \
 			"version": "$(call json_quote,$(VERSION_NUMBER))", \
 			"revision": "$(call json_quote,$(REVISION))", \
-			"board": "$(call json_quote,$(BOARD))" \
+			"board": "$(call json_quote,$(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)))" \
 		} \
 	}'