f880a637c1833ffbc228e4b0652f6a3cf7269974
[openwrt/staging/nbd.git] / target / linux / bcm27xx / patches-6.1 / 950-0538-.github-workflows-Set-warnings-as-errors-for-builds.patch
1 From 0a1c5c32cfe570a688a09c90ab16052fcb258342 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 13 Jan 2023 14:32:45 +0000
4 Subject: [PATCH] .github/workflows: Set warnings-as-errors for builds
5
6 To avoid code with build warnings being introduced into the tree, force
7 CONFIG_WERROR=y in the build workflow.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 ---
11 .github/workflows/kernel-build.yml | 6 ++++++
12 1 file changed, 6 insertions(+)
13
14 --- a/.github/workflows/kernel-build.yml
15 +++ b/.github/workflows/kernel-build.yml
16 @@ -38,6 +38,7 @@ jobs:
17 run: |
18 mkdir ${{github.workspace}}/build
19 make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2835_defconfig
20 + scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
21 make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} Image modules dtbs
22 mkdir -p ${{github.workspace}}/install/boot
23 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
24 @@ -78,6 +79,7 @@ jobs:
25 run: |
26 mkdir ${{github.workspace}}/build
27 make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build defconfig
28 + scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
29 make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} Image.gz modules dtbs
30 mkdir -p ${{github.workspace}}/install/boot
31 make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
32 @@ -118,6 +120,7 @@ jobs:
33 run: |
34 mkdir ${{github.workspace}}/build
35 make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2711_defconfig
36 + scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
37 make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} zImage modules dtbs
38 mkdir -p ${{github.workspace}}/install/boot
39 make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
40 @@ -158,6 +161,7 @@ jobs:
41 run: |
42 mkdir ${{github.workspace}}/build
43 make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2709_defconfig
44 + scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
45 make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} zImage modules dtbs
46 mkdir -p ${{github.workspace}}/install/boot
47 make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
48 @@ -198,6 +202,7 @@ jobs:
49 run: |
50 mkdir ${{github.workspace}}/build
51 make ARCH=arm KERNEL=kernel7l CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2711_defconfig
52 + scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
53 make ARCH=arm KERNEL=kernel7l CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} zImage modules dtbs
54 mkdir -p ${{github.workspace}}/install/boot
55 make ARCH=arm KERNEL=kernel7l CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
56 @@ -248,6 +253,7 @@ jobs:
57 run: |
58 mkdir ${{github.workspace}}/build
59 make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build bcm2711_defconfig
60 + scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
61 make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} Image.gz modules dtbs
62 mkdir -p ${{github.workspace}}/install/boot
63 make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install