Skip to content

Commit 0c49fe4

Browse files
committed
Add support for toplevel Makefile
Add toplevel Makefile with clean support. Updated Readme for building details.
1 parent 63ad943 commit 0c49fe4

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CODE_DIR = customer_app
2+
3+
.PHONY: app
4+
5+
app:
6+
$(MAKE) -C $(CODE_DIR)
7+
clean:
8+
find . -name build_out|xargs rm -rf
9+
find . -name __pycache__|xargs rm -rf
10+
find . -type f -name "*.pyc" -delete
11+
rm -rf tools/sdk_pub_tool/bouffalolab*

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ You can find a lot of documentation on `PINE64 Documentation Website <https://pi
1818

1919
Quick Start
2020
-----------
21-
In order to build one of the sample apps, you need to set a few environment
22-
variables::
21+
In order to build sample apps, you need to set a few environment variables::
2322

2423
export BL60X_SDK_PATH=/path/to/this/repo
2524
export CONFIG_CHIP_NAME=BL602
2625

27-
Then go to the sample directory of interest and call `make`, for example::
26+
In order to build all sample apps simply call `make`, for example ::
27+
make
28+
29+
To only build the sample app of interest, go to the directory of the app,
30+
then call `make`, for example::
2831

2932
cd customer_app/bl602_boot2
3033
make
3134

3235
Call ::
36+
=======
3337

3438
make CONFIG_TOOLPREFIX=riscv64-linux-gnu-
3539

clean

Lines changed: 0 additions & 11 deletions
This file was deleted.

customer_app/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
app:
44
find . -maxdepth 2 -mindepth 2 -type d -execdir ./genromap {} \;
5+
clean:
6+
find . -name build_out|xargs rm -rf

0 commit comments

Comments
 (0)