diff options
author | Adrian Reber <adrian@lisas.de> | 2016-07-25 17:08:53 +1000 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-07-27 15:56:26 +1000 |
commit | 54f14f328b311537bd53df505aa61cc7c7c86d48 (patch) | |
tree | d19301724fa1626a63976131ff604a69da7552e1 /tools/Makefile | |
parent | e290ccc93282bc2b5432f8d075c1b490091345c5 (diff) | |
download | SLOF-54f14f328b311537bd53df505aa61cc7c7c86d48.zip SLOF-54f14f328b311537bd53df505aa61cc7c7c86d48.tar.gz SLOF-54f14f328b311537bd53df505aa61cc7c7c86d48.tar.bz2 |
tools: added initial version of sloffs
sloffs is a tool to get information about the flash images
created by the SLOF build process and it will also be able
to modify those flash images
(cherry picked from commit ec9f4acc3977a81289704fae0ad8bb62f3a93ab1)
Cherry picked from https://lisas.de/~adrian/slof/slof.git/
Signed-off-by: Adrian Reber <adrian@lisas.de>
[aik: squashed e1e52adb5, e6369bb10b, 4d6f40c47d, 82532ec08; fixed warnings]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/Makefile b/tools/Makefile index 06cdaa7..a035960 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -12,7 +12,9 @@ include ../make.rules -all: gen_reloc_table +TARGETS = gen_reloc_table sloffs + +all: $(TARGETS) %.o: %.c $(HOSTCC) -W $(HOSTCFLAGS) -c $^ @@ -20,11 +22,13 @@ all: gen_reloc_table gen_reloc_table: gen_reloc_table.o $(HOSTCC) $(HOSTCFLAGS) -o $@ $^ -clean_here: - rm -f *.o gen_reloc_table +sloffs: sloffs.o + $(HOSTCC) $(HOSTCFLAGS) -o $@ $^ -clean: clean_here +clean_here: + rm -f *.o $(TARGETS) +clean: clean_here -distclean: clean_here +distclean: clean_here |