Skip to content

Commit b600f16

Browse files
committed
fix OPENSBI_USE_GCC unset error.
1 parent 6d45c52 commit b600f16

File tree

6 files changed

+376
-43
lines changed

6 files changed

+376
-43
lines changed

lib/compilation.sh

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# compile_kernel
1717
# compile_firmware
1818
# compile_armbian-config
19-
# compile_xilinx_bootgen
2019
# grab_version
2120
# find_toolchain
2221
# advanced_patch
@@ -163,11 +162,11 @@ compile_uboot()
163162
# create patch for manual source changes
164163
[[ $CREATE_PATCHES == yes ]] && userpatch_create "u-boot"
165164

166-
if [[ -n $OPENSBISOURCE ]]; then
167-
cp -Rv "${opensbitempdir}"/*.bin .
168-
cp -Rv "${opensbitempdir}"/*.elf .
169-
rm -rf "${opensbitempdir}"
170-
fi
165+
#if [[ -n $OPENSBISOURCE ]]; then
166+
# cp -Rv "${opensbitempdir}"/*.bin .
167+
# cp -Rv "${opensbitempdir}"/*.elf .
168+
# rm -rf "${opensbitempdir}"
169+
#fi
171170

172171
echo -e "\n\t== u-boot make $BOOTCONFIG ==\n" >> "${DEST}"/${LOG_SUBPATH}/compilation.log
173172
eval CCACHE_BASEDIR="$(pwd)" env PATH="${toolchain}:${toolchain2}:${PATH}" \
@@ -432,9 +431,6 @@ Before any olddefconfig any Kconfig make is called.
432431
A good place to customize the .config directly.
433432
CUSTOM_KERNEL_CONFIG
434433

435-
# hack for deb builder. To pack what's missing in headers pack.
436-
cp "${SRC}"/patch/misc/headers-debian-byteshift.patch /tmp
437-
438434
if [[ $KERNEL_CONFIGURE != yes ]]; then
439435
if [[ $BRANCH == default ]]; then
440436
eval CCACHE_BASEDIR="$(pwd)" env PATH="${toolchain}:${PATH}" \
@@ -731,27 +727,6 @@ compile_armbian-config()
731727
rm -rf "${tmp_dir}"
732728
}
733729

734-
compile_xilinx_bootgen()
735-
{
736-
# Source code checkout
737-
(fetch_from_repo "$GITHUB_SOURCE/Xilinx/bootgen.git" "xilinx-bootgen" "branch:master")
738-
739-
pushd "${SRC}"/cache/sources/xilinx-bootgen || exit
740-
741-
# Compile and install only if git commit hash changed
742-
# need to check if /usr/local/bin/bootgen to detect new Docker containers with old cached sources
743-
if [[ ! -f .commit_id || $(improved_git rev-parse @ 2>/dev/null) != $(<.commit_id) || ! -f /usr/local/bin/bootgen ]]; then
744-
display_alert "Compiling" "xilinx-bootgen" "info"
745-
make -s clean >/dev/null
746-
make -s -j$(nproc) bootgen >/dev/null
747-
mkdir -p /usr/local/bin/
748-
install bootgen /usr/local/bin >/dev/null 2>&1
749-
improved_git rev-parse @ 2>/dev/null > .commit_id
750-
fi
751-
752-
popd
753-
}
754-
755730
grab_version()
756731
{
757732
local ver=()

lib/configuration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ SDCARD="${SRC}/.tmp/rootfs-${MOUNT_UUID}"
412412
MOUNT="${SRC}/.tmp/mount-${MOUNT_UUID}"
413413
DESTIMG="${SRC}/.tmp/image-${MOUNT_UUID}"
414414

415-
[[ -n $OPENSBISOURCE && -z $ATF_USE_GCC ]] && exit_with_error "Error in configuration: ATF_USE_GCC is unset"
415+
[[ -n $OPENSBISOURCE && -z $OPENSBI_USE_GCC ]] && exit_with_error "Error in configuration: OPENSBI_USE_GCC is unset"
416416
[[ -z $UBOOT_USE_GCC ]] && exit_with_error "Error in configuration: UBOOT_USE_GCC is unset"
417417
[[ -z $KERNEL_USE_GCC ]] && exit_with_error "Error in configuration: KERNEL_USE_GCC is unset"
418418

lib/general.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ prepare_host()
15311531
display_alert "Checking for external GCC compilers" "" "info"
15321532
# download external Linaro compiler and missing special dependencies since they are needed for certain sources
15331533

1534-
local toolchain="https://github.com/chainsx/armbian-d1-build/releases/download/toolchain/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz"
1534+
local toolchain="${GITHUB_SOURCE}/chainsx/armbian-d1-build/releases/download/toolchain/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz"
15351535
if [[ ! -d ${SRC}/cache/toolchain/gcc-toolchain/ ]]; then
15361536
wget ${toolchain} -O "${SRC}/cache/toolchain/toolchain.tar.gz"
15371537
tar -zxf "${SRC}/cache/toolchain/toolchain.tar.gz" -C ${SRC}/cache/toolchain/

packages/armbian/builddeb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,6 @@ deploy_kernel_headers() {
147147
fi
148148
} > debian/hdrobjfiles
149149

150-
if is_native; then
151-
echo "info: Build native: Skip headers-debian-byteshift.patch" >&2
152-
elif is_build_on_amd64; then
153-
(
154-
cd $destdir
155-
patch -p1 < /tmp/headers-debian-byteshift.patch
156-
)
157-
fi
158-
159150
tar -c -f - -C $srctree -T debian/hdrsrcfiles | tar -xf - -C $destdir
160151
tar -c -f - -T debian/hdrobjfiles | tar -xf - -C $destdir
161152
rm -f debian/hdrsrcfiles debian/hdrobjfiles

patch/kernel/thead-current/000-builddeb.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- builddeb 2023-08-30 23:34:33.515646129 +0800
2-
+++ builddeb.2 2023-08-30 23:35:59.386906141 +0800
1+
--- a/scripts/package/builddeb
2+
+++ b/scripts/package/builddeb
33
@@ -126,7 +126,7 @@
44
installed_image_path="usr/bin/linux-$version"
55
;;

0 commit comments

Comments
 (0)