mirror of
https://github.com/pine64/bl_iot_sdk.git
synced 2024-07-05 12:38:59 +00:00
Add support for toplevel Makefile
Add toplevel Makefile with clean support. Updated Readme for building details.
This commit is contained in:
parent
63ad94309a
commit
0c49fe4b3e
11
Makefile
Normal file
11
Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
CODE_DIR = customer_app
|
||||||
|
|
||||||
|
.PHONY: app
|
||||||
|
|
||||||
|
app:
|
||||||
|
$(MAKE) -C $(CODE_DIR)
|
||||||
|
clean:
|
||||||
|
find . -name build_out|xargs rm -rf
|
||||||
|
find . -name __pycache__|xargs rm -rf
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
|
rm -rf tools/sdk_pub_tool/bouffalolab*
|
10
README.rst
10
README.rst
|
@ -18,18 +18,22 @@ You can find a lot of documentation on `PINE64 Documentation Website <https://pi
|
||||||
|
|
||||||
Quick Start
|
Quick Start
|
||||||
-----------
|
-----------
|
||||||
In order to build one of the sample apps, you need to set a few environment
|
In order to build sample apps, you need to set a few environment variables::
|
||||||
variables::
|
|
||||||
|
|
||||||
export BL60X_SDK_PATH=/path/to/this/repo
|
export BL60X_SDK_PATH=/path/to/this/repo
|
||||||
export CONFIG_CHIP_NAME=BL602
|
export CONFIG_CHIP_NAME=BL602
|
||||||
|
|
||||||
Then go to the sample directory of interest and call `make`, for example::
|
In order to build all sample apps simply call `make`, for example ::
|
||||||
|
make
|
||||||
|
|
||||||
|
To only build the sample app of interest, go to the directory of the app,
|
||||||
|
then call `make`, for example::
|
||||||
|
|
||||||
cd customer_app/bl602_boot2
|
cd customer_app/bl602_boot2
|
||||||
make
|
make
|
||||||
|
|
||||||
Call ::
|
Call ::
|
||||||
|
=======
|
||||||
|
|
||||||
make CONFIG_TOOLPREFIX=riscv64-linux-gnu-
|
make CONFIG_TOOLPREFIX=riscv64-linux-gnu-
|
||||||
|
|
||||||
|
|
11
clean
11
clean
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
find . -name build_out|xargs rm -rf
|
|
||||||
find . -name __pycache__|xargs rm -rf
|
|
||||||
find . -name "*.pyc"|xargs rm -rf
|
|
||||||
find . -name "*.swp"|xargs rm -rf
|
|
||||||
rm -rf docs/html
|
|
||||||
rm -rf docs/zh_CH/_build/
|
|
||||||
rm -rf docs/zh_CH/man/
|
|
||||||
rm -rf docs/zh_CH/xml/
|
|
||||||
rm -rf docs/zh_CH/xml_in/
|
|
||||||
rm -rf tools/sdk_pub_tool/bouffalolab*
|
|
|
@ -2,3 +2,5 @@
|
||||||
|
|
||||||
app:
|
app:
|
||||||
find . -maxdepth 2 -mindepth 2 -type d -execdir ./genromap {} \;
|
find . -maxdepth 2 -mindepth 2 -type d -execdir ./genromap {} \;
|
||||||
|
clean:
|
||||||
|
find . -name build_out|xargs rm -rf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user