From 55234e8585653bb0a85bb65172cfddfae30d3381 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Wed, 30 Oct 2019 14:56:05 +0800 Subject: [PATCH] Add some simple visualisation of the binary images --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dd0d9f5..5f79af5 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,11 @@ $(shell mkdir -p $(DEPSDIR)) test: $(addsuffix .iso,$(LIST_PATCHED)) $(addsuffix .img,$(LIST_PATCHED)) -test.img.orig: $(addsuffix .orig,$(shell grep rule:IMG Descriptions.txt |cut -d" " -f1)) +ALL_IMG_ORIG := $(addsuffix .orig,$(shell grep rule:IMG Descriptions.txt |cut -d" " -f1)) +test.img.orig: $(ALL_IMG_ORIG) + +.PHONY: test.pgm +test.pgm: $(addsuffix .pgm,$(ALL_IMG_ORIG)) # Generate a useful report test.report: @@ -293,6 +297,9 @@ mec-tools/mec_encrypt: mec-tools/Makefile git submodule update make -C mec-tools +# Simple Visualisation +%.pgm: % + (echo "P5 256 $$(($(shell stat -c %s $<)/265)) 255" ; cat $< ) > $@ # Extract the FL2 file from an ISO image #