From 738097d668ed665e6775d9402104260f390ef8d9 Mon Sep 17 00:00:00 2001 From: RICCIARDI-Adrien Date: Thu, 31 Dec 2020 23:06:27 +0100 Subject: [PATCH] Added Buildroot C library selection. Signed-off-by: RICCIARDI-Adrien --- .github/workflows/buildroot.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildroot.yaml b/.github/workflows/buildroot.yaml index e386562..0a4b083 100644 --- a/.github/workflows/buildroot.yaml +++ b/.github/workflows/buildroot.yaml @@ -7,7 +7,7 @@ jobs: strategy: matrix: defconfig_name: [qemu_x86_defconfig, qemu_x86_64_defconfig] - libc_name: [glibc, uclibc] + libc_name: [glibc, uclibc, musl] steps: - name: Checkout Buildroot sources run: git clone --depth=1 --branch=2020.11.1 https://git.busybox.net/buildroot @@ -26,6 +26,8 @@ jobs: sed -i "/PPPD_VERSION =/c\\PPPD_VERSION = ${GITHUB_SHA}" pppd.mk sed -i '/PPPD_SITE =/c\\PPPD_SITE = https://github.com/paulusmack/ppp' pppd.mk sed -i '9iPPPD_SITE_METHOD = git' pppd.mk + # Plugin rp-pppoe has been renamed in "pppoe" + sed -i 's/rp-pppoe/pppoe/g' pppd.mk - name: Enable PPP build working-directory: buildroot run: | @@ -34,6 +36,18 @@ jobs: echo "BR2_PACKAGE_PPPD_FILTER=y" >> configs/${{ matrix.defconfig_name }} echo "BR2_PACKAGE_PPPD_RADIUS=y" >> configs/${{ matrix.defconfig_name }} echo "BR2_PACKAGE_PPPD_OVERWRITE_RESOLV_CONF=y" >> configs/${{ matrix.defconfig_name }} + - name: Select glibc + if: ${{ matrix.libc_name == 'glibc' }} + working-directory: buildroot + run: echo "BR2_TOOLCHAIN_BUILDROOT_GLIBC=y" >> configs/${{ matrix.defconfig_name }} + - name: Select uClibc + if: ${{ matrix.libc_name == 'uclibc' }} + working-directory: buildroot + run: echo "BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y" >> configs/${{ matrix.defconfig_name }} + - name: Select musl + if: ${{ matrix.libc_name == 'musl' }} + working-directory: buildroot + run: echo "BR2_TOOLCHAIN_BUILDROOT_MUSL=y" >> configs/${{ matrix.defconfig_name }} - name: Configure Buildroot working-directory: buildroot run: make ${{ matrix.defconfig_name }} -- 2.39.2