From c130bf6dec1c56a84bd67b2917f298ef8351ab39 Mon Sep 17 00:00:00 2001 From: Alessandro Rubini <rubini@gnudd.com> Date: Sat, 19 Sep 2015 09:31:17 +0200 Subject: [PATCH] Makefile: simplify two rules Simplify access to $CONFIG_RAMSIZE. Actually, the previous way was not working for me, as my $SHELL is not bash. The bug is uncovered by the next commit, because the "-s" argument to genramvhd has always been wrong for me, but I didn't notice (so maybe the "-s" argument has no effect? I can't tell at this point) Signed-off-by: Alessandro Rubini <rubini@gnudd.com> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a3f80bd..5e396c2 100644 --- a/Makefile +++ b/Makefile @@ -139,10 +139,10 @@ config.o: .config ./tools/genraminit $*.bin 0 > $@ %.vhd: tools %.bin - ./tools/genramvhd -s `. ./.config; echo $$CONFIG_RAMSIZE` $*.bin > $@ + ./tools/genramvhd -s $(CONFIG_RAMSIZE) $*.bin > $@ %.mif: tools %.bin - ./tools/genrammif $*.bin `. ./.config; echo $$CONFIG_RAMSIZE` > $@ + ./tools/genrammif $*.bin $(CONFIG_RAMSIZE) > $@ $(AUTOCONF): silentoldconfig -- GitLab