Skip to content

Commit

Permalink
Makefile: add a helper
Browse files Browse the repository at this point in the history
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
  • Loading branch information
lzufalcon committed Dec 2, 2017
1 parent de05f38 commit 7f93e50
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Makefile for rtthread-lab

BSP ?= qemu-vexpress-a9
BSP_WORKDIR = rt-thread/bsp/$(BSP)/
BOOT_CMD = qemu-nographic.sh

ifeq ($(G),1)
BOOT_CMD := qemu.sh
endif

help:
@echo "Usage:"
@echo
@echo "init -- download or update rt-thread"
@echo "build -- compile rt-thread"
@echo "boot -- boot rt-thread on qemu"
@echo
init:
git submodule update --init --remote .

build:
cd $(BSP_WORKDIR)
scons

boot:
cd $(BSP_WORKDIR)
bash $(BOOT_CMD)

0 comments on commit 7f93e50

Please sign in to comment.