Add comment explaining FORCE_UNSAFE_CONFIGURE

[skip ci]
This commit is contained in:
Jordan Carlin 2025-01-16 22:14:43 -08:00
parent b3796fc810
commit af99d2cd80
No known key found for this signature in database

View File

@ -473,7 +473,7 @@ if [ ! "$no_buidroot" ]; then
fi fi
cd "$dir"/../linux cd "$dir"/../linux
if [ ! -e "$RISCV"/buildroot ]; then if [ ! -e "$RISCV"/buildroot ]; then
FORCE_UNSAFE_CONFIGURE=1 make 2>&1 | logger $STATUS; [ "${PIPESTATUS[0]}" == 0 ] FORCE_UNSAFE_CONFIGURE=1 make 2>&1 | logger $STATUS; [ "${PIPESTATUS[0]}" == 0 ] # FORCE_UNSAFE_CONFIGURE is needed to allow buildroot to compile when run as root
echo -e "${SUCCESS_COLOR}Buildroot successfully installed and Linux testvectors created!${ENDC}" echo -e "${SUCCESS_COLOR}Buildroot successfully installed and Linux testvectors created!${ENDC}"
elif [ ! -e "$RISCV"/linux-testvectors ]; then elif [ ! -e "$RISCV"/linux-testvectors ]; then
echo -e "${OK_COLOR}Buildroot already exists, but Linux testvectors are missing. Generating them now.${ENDC}" echo -e "${OK_COLOR}Buildroot already exists, but Linux testvectors are missing. Generating them now.${ENDC}"