Skip to content

Commit

Permalink
fix: toolchains/*: export PATH before doing make
Browse files Browse the repository at this point in the history
instead of running it right at the make command xd
  • Loading branch information
fukiame committed Sep 14, 2023
1 parent 4cac66a commit 8fe161c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion toolchains/AOSP-Clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ case $1 in
;;

"build" )
export PATH="$clang/bin:$gcc64/bin:$gcc/bin:/usr/bin:${PATH}"
make -j$(nproc --all) O=out ARCH=arm64 SUBARCH=arm64 $2
make -j$(nproc --all) O=out \
PATH="$clang/bin:$gcc64/bin:$gcc/bin:/usr/bin:${PATH}" \
CROSS_COMPILE="aarch64-linux-android-" \
CROSS_COMPILE_ARM32="arm-linux-androideabi-" \
CLANG_TRIPLE="aarch64-linux-gnu-" \
Expand Down
2 changes: 1 addition & 1 deletion toolchains/Eva-GCC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ case $1 in
;;

"build" )
export PATH="${GCC64}/bin:${GCC}/bin:/usr/bin:${PATH}"
make -j$(nproc --all) O=out ARCH=arm64 SUBARCH=arm64 $2
make -j$(nproc --all) O=out \
PATH="${GCC64}/bin:${GCC}/bin:/usr/bin:${PATH}" \
CROSS_COMPILE=aarch64-elf- \
CROSS_COMPILE_ARM32=arm-eabi- \
CROSS_COMPILE_COMPAT=arm-eabi- \
Expand Down
2 changes: 1 addition & 1 deletion toolchains/Neutron-Clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ case $1 in
;;

"build" )
export PATH="${dir}/bin:/usr/bin:${PATH}"
make -j$(nproc --all) O=out ARCH=arm64 SUBARCH=arm64 $2
make -j$(nproc --all) O=out \
PATH="${dir}/bin:/usr/bin:${PATH}" \
CROSS_COMPILE="aarch64-linux-gnu-" \
CROSS_COMPILE_ARM32="arm-linux-gnueabi-" \
CROSS_COMPILE_COMPAT="arm-linux-gnueabi-" \
Expand Down
2 changes: 1 addition & 1 deletion toolchains/WeebX-Clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ case $1 in
;;

"build" )
export PATH="${dir}/bin:/usr/bin:${PATH}"
make -j$(nproc --all) O=out ARCH=arm64 SUBARCH=arm64 $2
make -j$(nproc --all) O=out \
PATH="${dir}/bin:/usr/bin:${PATH}" \
CROSS_COMPILE="aarch64-linux-gnu-" \
CROSS_COMPILE_ARM32="arm-linux-gnueabi-" \
CROSS_COMPILE_COMPAT="arm-linux-gnueabi-" \
Expand Down
2 changes: 1 addition & 1 deletion toolchains/ZyC-Clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ case $1 in
;;

"build" )
export PATH="${dir}/bin:/usr/bin:${PATH}"
make -j$(nproc --all) O=out ARCH=arm64 SUBARCH=arm64 $2
make -j$(nproc --all) O=out \
PATH="${dir}/bin:/usr/bin:${PATH}" \
CROSS_COMPILE="aarch64-linux-gnu-" \
CROSS_COMPILE_ARM32="arm-linux-gnueabi-" \
CROSS_COMPILE_COMPAT="arm-linux-gnueabi-" \
Expand Down

0 comments on commit 8fe161c

Please sign in to comment.