From a7c2db4e639da9ebd50a34353511170a9dc95d05 Mon Sep 17 00:00:00 2001 From: wenz-jam Date: Tue, 17 Oct 2023 23:14:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bugs=20when=20using=20make=20-B=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8make=20-B=20=E6=97=B6=E4=BA=A7?= =?UTF-8?q?=E7=94=9F=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/abstract-machine/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/abstract-machine/Makefile b/bsp/abstract-machine/Makefile index 962a45f..2479062 100644 --- a/bsp/abstract-machine/Makefile +++ b/bsp/abstract-machine/Makefile @@ -14,6 +14,7 @@ include $(AM_HOME)/Makefile $(RTCONFIG_H): touch $@ scons --useconfig=.config + if [ "`sed -n '3p' $@`"x = x ]; then sed -i -e '2a#include "extra.h"' $@; fi init: $(RTCONFIG_H) scons -c @@ -21,7 +22,6 @@ init: $(RTCONFIG_H) cat $(FILE_TMP) | grep -o '[^ ]*.c$$' | awk '{print "SRCS += " $$1}' > $(FILE_MK) cat $(FILE_TMP) | grep 'gcc ' | head -n 1 | grep -o " -I[^ ]*" | awk '{print "CFLAGS += " $$1}' >> $(FILE_MK) rm $(FILE_TMP) - if [ "`sed -n '3p' $^`"x = x ]; then sed -i -e '2a#include "extra.h"' $^; fi menuconfig: scons --menuconfig