From c2e6ca26e52d1675ed1d9c7edbde257817806176 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 6 Jan 2017 16:49:52 +0100 Subject: [PATCH] build: add image command for calling kernel2minor Signed-off-by: Felix Fietkau --- include/image-commands.mk | 5 +++++ 1 file changed, 5 insertions(+) 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