浏览代码

build: add image command for calling kernel2minor

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 8 年之前
父节点
当前提交
c2e6ca26e5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      include/image-commands.mk

+ 5 - 0
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 [email protected] $(1)
+	mv [email protected] $@
+endef