build: add image command for calling kernel2minor
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
		| @@ -190,3 +190,8 @@ metadata_json = \ | |||||||
| define Build/append-metadata | define Build/append-metadata | ||||||
| 	$(if $(SUPPORTED_DEVICES),echo $(call metadata_json,$(SUPPORTED_DEVICES)) | fwtool -I - $@) | 	$(if $(SUPPORTED_DEVICES),echo $(call metadata_json,$(SUPPORTED_DEVICES)) | fwtool -I - $@) | ||||||
| endef | endef | ||||||
|  |  | ||||||
|  | define Build/kernel2minor | ||||||
|  | 	kernel2minor -k $@ -r $@.new $(1) | ||||||
|  | 	mv $@.new $@ | ||||||
|  | endef | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Felix Fietkau
					Felix Fietkau