From 397bc03c19fafbdf988ec3ea40b7e19c9def6197 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 24 May 2023 10:26:14 +0800 Subject: [PATCH] bsp,am: add basic Makefile to generate rtconfig.h from .config --- bsp/abstract-machine/.gitignore | 1 + bsp/abstract-machine/Makefile | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 bsp/abstract-machine/.gitignore create mode 100644 bsp/abstract-machine/Makefile diff --git a/bsp/abstract-machine/.gitignore b/bsp/abstract-machine/.gitignore new file mode 100644 index 0000000..7286b8f --- /dev/null +++ b/bsp/abstract-machine/.gitignore @@ -0,0 +1 @@ +rtconfig.h diff --git a/bsp/abstract-machine/Makefile b/bsp/abstract-machine/Makefile new file mode 100644 index 0000000..c6d733d --- /dev/null +++ b/bsp/abstract-machine/Makefile @@ -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