build: add image command for calling kernel2minor

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2017-01-06 16:49:52 +01:00
parent b18f75c3d8
commit c2e6ca26e5
1 changed files with 5 additions and 0 deletions

View File

@ -190,3 +190,8 @@ metadata_json = \
define Build/append-metadata
$(if $(SUPPORTED_DEVICES),echo $(call metadata_json,$(SUPPORTED_DEVICES)) | fwtool -I - $@)
endef
define Build/kernel2minor
kernel2minor -k $@ -r $@.new $(1)
mv $@.new $@
endef