bsp,am: add basic Makefile to generate rtconfig.h from .config

This commit is contained in:
Zihao Yu 2023-05-24 10:26:14 +08:00
parent 072b83d547
commit 397bc03c19
2 changed files with 15 additions and 0 deletions

1
bsp/abstract-machine/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
rtconfig.h

View 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