bsp,am: add basic Makefile to generate rtconfig.h from .config
This commit is contained in:
parent
072b83d547
commit
397bc03c19
2 changed files with 15 additions and 0 deletions
1
bsp/abstract-machine/.gitignore
vendored
Normal file
1
bsp/abstract-machine/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
rtconfig.h
|
14
bsp/abstract-machine/Makefile
Normal file
14
bsp/abstract-machine/Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
ARCH ?= native
|
||||
RTCONFIG_H = rtconfig.h
|
||||
|
||||
NAME = rtthread
|
||||
SRCS =
|
||||
include $(AM_HOME)/Makefile
|
||||
|
||||
$(RTCONFIG_H):
|
||||
touch $@
|
||||
scons --useconfig=.config
|
||||
|
||||
init: $(RTCONFIG_H)
|
||||
|
||||
.PHONY: init
|
Loading…
Add table
Reference in a new issue