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