summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-06-10 13:15:18 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-06-10 13:15:18 -0700
commit4fbbeee0d970ec86ab5b100461104a1db7be746d (patch)
tree2133fcb2d138affa43db7296dc478db2bcb7e617
parent2c5694f5f6f45884a4c3ed3aa1202f303a45ce42 (diff)
Pass the BSP_BASE and BOARD variables to "make software_clean"
Without these, "software_clean" doesn't know where to remove init.o, which means init.o isn't being rebuilt when moving between programs. Since we turn on and off init features, this causes programs to break.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0e12777..b69710d 100644
--- a/Makefile
+++ b/Makefile
@@ -190,7 +190,7 @@ PROGRAM_ELF = software/$(PROGRAM)/$(PROGRAM)
.PHONY: software_clean
software_clean:
- $(MAKE) -C $(PROGRAM_DIR) clean
+ $(MAKE) -C $(PROGRAM_DIR) BSP_BASE=$(abspath bsp) BOARD=$(BOARD) clean
.PHONY: software
software: software_clean