From: Felix Fietkau Date: Fri, 6 Jan 2017 15:49:52 +0000 (+0100) Subject: build: add image command for calling kernel2minor X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c2e6ca26e52d1675ed1d9c7edbde257817806176;p=openwrt%2Fstaging%2Fjow.git build: add image command for calling kernel2minor Signed-off-by: Felix Fietkau --- diff --git a/include/image-commands.mk b/include/image-commands.mk index 083a389031..a7acd0ee67 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -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