summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRICCIARDI-Adrien <adrien.ricciardi@hotmail.fr>2020-12-31 16:21:04 +0100
committerRICCIARDI-Adrien <adrien.ricciardi@hotmail.fr>2021-01-01 16:59:00 +0100
commit9295df66e3c47c3e421131ddc0d41eba18df9174 (patch)
treece95429f45224d4ce673dd2f2b400c82d00f963b /.github
parent01312898eedc2c1e97bdf525381b0987c8e8b0b1 (diff)
downloadppp-9295df66e3c47c3e421131ddc0d41eba18df9174.tar.gz
Added Buildroot configuration and build steps.
Signed-off-by: RICCIARDI-Adrien <adrien.ricciardi@hotmail.fr>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/buildroot.yaml23
1 files changed, 18 insertions, 5 deletions
diff --git a/.github/workflows/buildroot.yaml b/.github/workflows/buildroot.yaml
index a80353b..e386562 100644
--- a/.github/workflows/buildroot.yaml
+++ b/.github/workflows/buildroot.yaml
@@ -2,11 +2,12 @@ name: Buildroot
on: [push]
jobs:
- matrix_build:
+ buildroot:
runs-on: ubuntu-latest
strategy:
matrix:
defconfig_name: [qemu_x86_defconfig, qemu_x86_64_defconfig]
+ libc_name: [glibc, uclibc]
steps:
- name: Checkout Buildroot sources
run: git clone --depth=1 --branch=2020.11.1 https://git.busybox.net/buildroot
@@ -15,15 +16,27 @@ jobs:
run: |
# Allow package to build when musl libc is selected
sed -i '/depends on !BR2_TOOLCHAIN_USES_MUSL/d' Config.in
+ # Upstream version always needs OpenSSL
+ sed -i '/select BR2_PACKAGE_OPENSSL/c\\select BR2_PACKAGE_OPENSSL' Config.in
# Do not check for package hash, so there is no need to compute it
rm pppd.hash
+ # Buildroot patch is already applied upstream
+ rm -f 0001-pppd-Fix-bounds-check.patch
# Get package sources from head of master branch
- sed -i '/PPPD_VERSION =/c\\PPPD_VERSION = master' pppd.mk
+ 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_MUSL_SITE_METHOD = git' pppd.mk
+ sed -i '9iPPPD_SITE_METHOD = git' pppd.mk
- name: Enable PPP build
working-directory: buildroot
run: |
+ # Enable all Buildroot PPP options as everything is built by upstream build system
echo "BR2_PACKAGE_PPPD=y" >> configs/${{ matrix.defconfig_name }}
- # TODO enable other PPP package options if needed
- cat configs/${{ matrix.defconfig_name }}
+ 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: Configure Buildroot
+ working-directory: buildroot
+ run: make ${{ matrix.defconfig_name }}
+ - name: Build
+ working-directory: buildroot
+ run: make