提交 47ca1c2f 编写于 作者: B BernardXiong

[Tools] Remove Makefile from BSP

上级 bd8f0d04
phony := all
all:
include config.mk
ifneq ($(MAKE_LIB),1)
TARGET := rtthread.elf
include src.mk
endif
$(if $(strip $(RTT_ROOT)),,$(error RTT_ROOT not defined))
include $(RTT_ROOT)/tools/rtthread.mk
......@@ -5,6 +5,21 @@ from utils import *
from utils import _make_path_relative
import rtconfig
makefile = '''phony := all
all:
include config.mk
ifneq ($(MAKE_LIB),1)
TARGET := rtthread.elf
include src.mk
endif
$(if $(strip $(RTT_ROOT)),,$(error RTT_ROOT not defined))
include $(RTT_ROOT)/tools/rtthread.mk
'''
def TargetMakefile(env):
project = ProjectInfo(env)
......@@ -104,4 +119,8 @@ def TargetMakefile(env):
for item in files:
src.write('SRC_FILES +=%s\n' % item)
make = open('Makefile', 'w')
make.write(makefile)
make.close()
return
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册