@@ -1,33 +1,33 | |||
|
1 | # | |
|
2 | # Setup videocore - Raspberry Userland | |
|
3 | # | |
|
4 | ||
|
5 | # Load utility functions | |
|
6 | . ./functions.sh | |
|
7 | ||
|
8 | if [ "$ENABLE_VIDEOCORE" = true ] ; then | |
|
9 | # Copy existing videocore sources into chroot directory | |
|
10 | if [ -n "$VIDEOCORESRC_DIR" ] && [ -d "$VIDEOCORESRC_DIR" ] ; then | |
|
11 | # Copy local U-Boot sources | |
|
12 | cp -r "${VIDEOCORESRC_DIR}" "${R}/tmp" | |
|
13 | else | |
|
14 | # Create temporary directory for U-Boot sources | |
|
15 | temp_dir=$(as_nobody mktemp -d) | |
|
16 | ||
|
17 | # Fetch U-Boot sources | |
|
18 | as_nobody git -C "${temp_dir}" clone "${VIDEOCORE_URL}" | |
|
19 | ||
|
20 | # Copy downloaded U-Boot sources | |
|
21 | mv "${temp_dir}/userland" "${R}/tmp/" | |
|
22 | ||
|
23 | # Set permissions of the U-Boot sources | |
|
24 | chown -R root:root "${R}/tmp/userland" | |
|
25 | ||
|
26 | # Remove temporary directory for U-Boot sources | |
|
27 | rm -fr "${temp_dir}" | |
|
28 | fi | |
|
29 | ||
|
30 | cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_BUILD_TYPE=release -DARM64=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_ASM_COMPILER=aarch64-linux-gnu-gcc -DVIDEOCORE_BUILD_DIR="${R}"/opt/vc | |
|
31 | make -j $(nproc) | |
|
32 | chroot_exec PATH=${PATH}:/opt/vc/bin | |
|
33 | fi | |
|
1 | # | |
|
2 | # Setup videocore - Raspberry Userland | |
|
3 | # | |
|
4 | ||
|
5 | # Load utility functions | |
|
6 | . ./functions.sh | |
|
7 | ||
|
8 | if [ "$ENABLE_VIDEOCORE" = true ] ; then | |
|
9 | # Copy existing videocore sources into chroot directory | |
|
10 | if [ -n "$VIDEOCORESRC_DIR" ] && [ -d "$VIDEOCORESRC_DIR" ] ; then | |
|
11 | # Copy local U-Boot sources | |
|
12 | cp -r "${VIDEOCORESRC_DIR}" "${R}/tmp" | |
|
13 | else | |
|
14 | # Create temporary directory for U-Boot sources | |
|
15 | temp_dir=$(as_nobody mktemp -d) | |
|
16 | ||
|
17 | # Fetch U-Boot sources | |
|
18 | as_nobody git -C "${temp_dir}" clone "${VIDEOCORE_URL}" | |
|
19 | ||
|
20 | # Copy downloaded U-Boot sources | |
|
21 | mv "${temp_dir}/userland" "${R}/tmp/" | |
|
22 | ||
|
23 | # Set permissions of the U-Boot sources | |
|
24 | chown -R root:root "${R}/tmp/userland" | |
|
25 | ||
|
26 | # Remove temporary directory for U-Boot sources | |
|
27 | rm -fr "${temp_dir}" | |
|
28 | fi | |
|
29 | ||
|
30 | cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_BUILD_TYPE=release -DARM64=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_ASM_COMPILER=aarch64-linux-gnu-gcc -DVIDEOCORE_BUILD_DIR="${R}"/opt/vc | |
|
31 | make -j $(nproc) | |
|
32 | chroot_exec PATH=${PATH}:/opt/vc/bin | |
|
33 | fi |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant