This will pass PADDR on if defined on commandline and is used to form the -p <paddr> argument to mab
Signed-off-by: Graeme Gregory graeme.gregory@linaro.org --- Makefile | 2 +- platforms/Makefile | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile index 5899899..e82376d 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ MABDIR := tools/mab/ PLATDIR := platforms/
%.acpi : $(MABDIR)/mab - make MAB=$(CURDIR)/$(MABDIR)/mab -C $(PLATDIR) $@ + make MAB=$(CURDIR)/$(MABDIR)/mab PADDR=$(PADDR) -C $(PLATDIR) $@
$(MABDIR)/mab : FORCE make -C $(MABDIR) diff --git a/platforms/Makefile b/platforms/Makefile index 61e2133..95e8453 100644 --- a/platforms/Makefile +++ b/platforms/Makefile @@ -1,5 +1,9 @@ +ifdef PADDR + PADDR_ARG := -p $(PADDR) +endif + %.acpi : FORCE - $(MAB) -d $@ -i $(basename $@).manifest -o $@ + $(MAB) -d $@ $(PADDR_ARG) -i $(basename $@).manifest -o $@
clean : -rm *.acpi/*.aml