qmk build system

This commit is contained in:
huangjimin
2020-07-14 16:06:01 +08:00
parent 3f3b4f1566
commit 25f293d49a
10 changed files with 375 additions and 18 deletions

View File

@@ -20,6 +20,7 @@ ifeq ($(QTOP),)
$(error Please run this in a tree)
endif
LOCALDIR = $(patsubst %/,%,$(subst $(realpath $(QTOP))/,,$(CUR_DIR)))
export QTOP
####################################################################
@@ -30,10 +31,9 @@ TREE_LIB_ENABLE=1
lib=
subdirs =
include ${QTOP}/qmk/generic/Make.tpl
all::
make -C ${QTOP}/arch
make -C ${QTOP}/arch BP=Linux_Posix
make -C ${QTOP}/kernel
make -C ${QTOP}/osal
make -C ${QTOP}/net
@@ -44,6 +44,7 @@ LD_A_FILES += $(LIBDIR)/libkernel.a
LD_A_FILES += $(LIBDIR)/libhello_world.a
LD_A_FILES += $(LIBDIR)/libcmsis_os.a
LDFLAGS += -lpthread
include ${QTOP}/qmk/generic/Make.exec