]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-firmware/ks2-boot-monitor.git/commitdiff
Makefile: Use -C to build a sub directory
authorNishanth Menon <nm@ti.com>
Tue, 1 Sep 2015 20:52:03 +0000 (15:52 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 2 Oct 2015 03:54:46 +0000 (22:54 -0500)
cd dir;make is the wrong way to build a sub directory.

Signed-off-by: Nishanth Menon <nm@ti.com>
Makefile

index 6e9022a44aa0172b2240e2fd6a31a5ca07474840..1791afbce113fa04b993118580ae0c184c93d49b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,15 +75,15 @@ k2l:
        cp $(IMAGE).bin $(IMAGE)-k2l.bin
 
 build_image:
-       (cd sec; make SOC=$(SOC))
-       (cd non-sec; make SOC=$(SOC))
+       make SOC=$(SOC) -C sec
+       make SOC=$(SOC) -C non-sec
        cat $(NONSECPADBIN) >> $(IMAGE).bin
        cat $(SECPADBIN) >> $(IMAGE).bin
 
 build_clean:
        rm -rf $(IMAGE).bin
-       cd non-sec; make clean;
-       cd sec; make clean;
+       make -C non-sec clean
+       make -C sec clean
 
 clean: build_clean
        rm -rf $(IMAGE)-k2hk.bin