mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 20:56:33 +00:00
build.sh: add support for sourcing .build-env
This commit is contained in:
parent
216bb4601a
commit
0db67043cb
2
build.sh
2
build.sh
@ -15,6 +15,8 @@ osname=$(source $basedir/board/common/overlay/etc/version && echo $os_short_name
|
|||||||
osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version)
|
osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version)
|
||||||
gzip=$(which pigz || which gzip)
|
gzip=$(which pigz || which gzip)
|
||||||
|
|
||||||
|
test -f $basedir/.build-env && source $basedir/.build-env
|
||||||
|
|
||||||
if [ "$board" == "all" ]; then
|
if [ "$board" == "all" ]; then
|
||||||
boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1)
|
boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1)
|
||||||
for b in $boards; do
|
for b in $boards; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user