@@ -13,7 +13,7 if [ "$BUILD_KERNEL" = true ] ; then | |||||
13 | # Copy existing kernel sources into chroot directory |
|
13 | # Copy existing kernel sources into chroot directory | |
14 | if [ -n "$KERNELSRC_DIR" ] && [ -d "$KERNELSRC_DIR" ] ; then |
|
14 | if [ -n "$KERNELSRC_DIR" ] && [ -d "$KERNELSRC_DIR" ] ; then | |
15 | # Copy kernel sources |
|
15 | # Copy kernel sources | |
16 |
cp -r "${KERNELSRC_DIR}/ |
|
16 | cp -r "${KERNELSRC_DIR}/"* "${R}/usr/src/linux" | |
17 |
|
17 | |||
18 | # Clean the kernel sources |
|
18 | # Clean the kernel sources | |
19 | if [ "$KERNELSRC_CLEAN" = true ] && [ "$KERNELSRC_PREBUILT" = false ] ; then |
|
19 | if [ "$KERNELSRC_CLEAN" = true ] && [ "$KERNELSRC_PREBUILT" = false ] ; then | |
@@ -25,13 +25,13 if [ "$BUILD_KERNEL" = true ] ; then | |||||
25 |
|
25 | |||
26 | # Fetch current RPi2/3 kernel sources |
|
26 | # Fetch current RPi2/3 kernel sources | |
27 | if [ -z "${KERNEL_BRANCH}" ] ; then |
|
27 | if [ -z "${KERNEL_BRANCH}" ] ; then | |
28 |
as_nobody |
|
28 | as_nobody git -C "${temp_dir}" clone --depth=1 "${KERNEL_URL}" linux | |
29 | else |
|
29 | else | |
30 |
as_nobody |
|
30 | as_nobody git -C "${temp_dir}" clone --depth=1 --branch "${KERNEL_BRANCH}" "${KERNEL_URL}" linux | |
31 |
|
|
31 | fi | |
32 |
|
32 | |||
33 | # Copy downloaded kernel sources |
|
33 | # Copy downloaded kernel sources | |
34 |
|
|
34 | cp -r "${temp_dir}/linux/"* "${R}/usr/src/linux/" | |
35 |
|
35 | |||
36 | # Remove temporary directory for kernel sources |
|
36 | # Remove temporary directory for kernel sources | |
37 | rm -fr "${temp_dir}" |
|
37 | rm -fr "${temp_dir}" |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant