31
31
- name : Cache
32
32
uses : actions/cache@v1
33
33
with :
34
- path : ${HOME} /repo/raspberrypi
34
+ path : ~ /repo/raspberrypi
35
35
key : ${{ runner.os }}-raspberrypi-cross-build-${{ matrix.env.CONFIG_FILE }}-${{ matrix.env.RPI_LINUX_COMMIT_HASH }}
36
36
restore-keys : |
37
37
${{ runner.os }}-raspberrypi-cross-build-
@@ -53,16 +53,16 @@ jobs:
53
53
RPI_LINUX_COMMIT_HASH : ${{ matrix.env.RPI_LINUX_COMMIT_HASH }}
54
54
run : |
55
55
if [ -e ${HOME}/repo/raspberrypi/linux ]; then (cd ${HOME}/repo/raspberrypi/linux && git fetch origin && git checkout ${RPI_LINUX_VER} && git pull); else (cd ${HOME}/repo/raspberrypi && git clone -b ${RPI_LINUX_VER} https://github.com/raspberrypi/linux.git); fi
56
- cd ${HOME}/repo/raspberrypi/linux && make clean && git reset --hard HEAD && git checkout $RPI_LINUX_COMMIT_HASH
56
+ cd ${HOME}/repo/raspberrypi/linux && make clean && git reset --hard HEAD && git checkout ${ RPI_LINUX_COMMIT_HASH}
57
57
cp "${REPOSITORY_DIR}/.test/${CONFIG_FILE}" ${HOME}/repo/raspberrypi/linux/.config
58
- make CROSS_COMPILE=$HOME/repo/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- ARCH=arm oldconfig
59
- make CROSS_COMPILE=$HOME/repo/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- ARCH=arm -j 8
58
+ make CROSS_COMPILE=${ HOME} /repo/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- ARCH=arm oldconfig
59
+ make CROSS_COMPILE=${ HOME} /repo/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- ARCH=arm -j 8
60
60
61
61
- name : Build kernel module
62
62
env :
63
63
REPOSITORY_DIR : ${{ steps.cross-build.outputs.repository-dir }}
64
64
DRIVER_SRC_DIR : ${{ steps.cross-build.outputs.driver-src-dir }}
65
65
run : |
66
- cd $DRIVER_SRC_DIR
67
- make -f $REPOSITORY_DIR/.test/Makefile.crosscompile
68
- make -f $REPOSITORY_DIR/.test/Makefile.crosscompile clean
66
+ cd ${ DRIVER_SRC_DIR}
67
+ make -f ${ REPOSITORY_DIR} /.test/Makefile.crosscompile
68
+ make -f ${ REPOSITORY_DIR} /.test/Makefile.crosscompile clean
0 commit comments