[ci skip] Keep BR_VER in one place (#372)

pull/373/head
Dmitry Ilyin 2022-08-17 09:44:54 +03:00 committed by GitHub
parent fa073f16a7
commit 4b458b630d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -67,6 +67,9 @@ install-deps:
$(eval CHIP := $(shell echo $@ | cut -d "_" -f 3))
@cat $(BR_EXT_DIR)/board/$(FAMILY)/$(CHIP).config
buildroot-version:
@echo $(BR_VER)
has-nand:
@sed -rn "s/^BR2_TARGET_ROOTFS_UBI=(y)/\1/p" $(FULL_PATH)

View File

@ -7,8 +7,6 @@
# Constants
#
export BR_VER=2020.02.12
MAX_KERNEL_SIZE=0x200000 # 2MiB, 2097152
MAX_KERNEL_SIZE_ULTIMATE=0x300000 # 3MiB, 3145728
MAX_KERNEL_SIZE_EXPERIMENTAL=0x3E8480 # ~3.9MiB, 4097152
@ -51,6 +49,8 @@ clone() {
}
fresh() {
BR_VER=$1
if [ -d "$SRC_CACHE_DIR" ]; then
echo_c 36 "Found cache directory."
else
@ -296,7 +296,7 @@ uni_build() {
echo_c 33 "\n SoC: $SOC\nBoard: $BOARD\n"
fresh
fresh $(make BOARD=unknown_unknown_${BOARD} buildroot-version)
log_and_run "make BOARD=unknown_unknown_${BOARD} all"
if [ "$BOARD" == "ssc335_initramfs" ]; then
@ -335,4 +335,3 @@ fi
echo_c 37 "Building OpenIPC ${CMD}"
uni_build $CMD