##// END OF EJS Templates
Correct values of start4.elf /star4.elf that were messed up...
Correct values of start4.elf /star4.elf that were messed up Add some # in comments to ease reading of imbricated if Add the Pi models in comments

Fichier de la dernière révision:

r665:c4237fcbc4c6
r760:b6cf856874ef
Show More
43-videocore.sh
56 lines | 2.3 KiB | application/x-sh | BashLexer
Unknown
convert line ending...
r339 #
# Setup videocore - Raspberry Userland
#
# Load utility functions
. ./functions.sh
if [ "$ENABLE_VIDEOCORE" = true ] ; then
# Copy existing videocore sources into chroot directory
if [ -n "$VIDEOCORESRC_DIR" ] && [ -d "$VIDEOCORESRC_DIR" ] ; then
Unknown
fixes...
r420 # Copy local videocore sources
Unknown
small videocore fix...
r365 cp -r "${VIDEOCORESRC_DIR}" "${R}/tmp/userland"
Unknown
convert line ending...
r339 else
Unknown
fixes...
r420 # Create temporary directory for videocore sources
Unknown
convert line ending...
r339 temp_dir=$(as_nobody mktemp -d)
Unknown
fixes...
r420 # Fetch videocore sources
Unknown
convert line ending...
r339 as_nobody git -C "${temp_dir}" clone "${VIDEOCORE_URL}"
Unknown
fixes...
r420 # Copy downloaded videocore sources
Unknown
convert line ending...
r339 mv "${temp_dir}/userland" "${R}/tmp/"
# Set permissions of the U-Boot sources
chown -R root:root "${R}/tmp/userland"
# Remove temporary directory for U-Boot sources
rm -fr "${temp_dir}"
fi
Unknown
small videocore fix...
r365
# Create build dir
mkdir "${R}"/tmp/userland/build
drtyhlpr
fix: various fixes
r398
Unknown
small videocore fix...
r365 # push us to build directory
Unknown
fixes...
r420 cd "${R}"/tmp/userland/build
Unknown
convert line ending...
r339
Unknown
small videocore fix...
r365 if [ "$RELEASE_ARCH" = "arm64" ] ; then
Unknown
PATCHES for:...
r665 cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_BUILD_TYPE=release -DCMAKE_TOOLCHAIN_FILE="${R}"/tmp/userland/makefiles/cmake/toolchains/aarch64-linux-gnu.cmake -DARM64=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_ASM_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE" -DCMAKE_ASM_FLAGS="${CMAKE_ASM_FLAGS} -c" -DVIDEOCORE_BUILD_DIR="${R}" "${R}/tmp/userland"
Unknown
small videocore fix...
r365 fi
if [ "$RELEASE_ARCH" = "armel" ] ; then
Unknown
PATCHES for:...
r665 cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_BUILD_TYPE=release -DCMAKE_TOOLCHAIN_FILE="${R}"/tmp/userland/makefiles/cmake/toolchains/arm-linux-gnueabihf.cmake -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabi-g++ -DCMAKE_ASM_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE" -DCMAKE_ASM_FLAGS="${CMAKE_ASM_FLAGS} -c" -DCMAKE_SYSTEM_PROCESSOR="arm" -DVIDEOCORE_BUILD_DIR="${R}" "${R}/tmp/userland"
Unknown
small videocore fix...
r365 fi
if [ "$RELEASE_ARCH" = "armhf" ] ; then
cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_BUILD_TYPE=release -DCMAKE_TOOLCHAIN_FILE="${R}"/tmp/userland/makefiles/cmake/toolchains/arm-linux-gnueabihf.cmake -DVIDEOCORE_BUILD_DIR="${R}" "${R}/tmp/userland"
fi
#build userland
Unknown
convert line ending...
r339 make -j "$(nproc)"
drtyhlpr
fix: various fixes
r398
Unknown
fixes...
r420 #back to root of scriptdir
cd "${WORKDIR}"
Unknown
Dropbear initramfs...
r501
# Remove videocore sources
rm -fr "${R}"/tmp/userland/
Unknown
convert line ending...
r339 fi