From c670aa680961b6538b49d6fdf19f1615186201fb Mon Sep 17 00:00:00 2001 From: Zubair Lutfullah Kakakhel Date: Wed, 7 Aug 2019 10:52:16 +0100 Subject: [PATCH] workarounds: Add workaround for odroid-xu4 Missing the module.lds file in the headers for odroid-xu4. wget it in workarounds Change-type: patch Changelog-entry: Add workaround for odroid-xu4 Signed-off-by: Zubair Lutfullah Kakakhel --- Dockerfile.template | 2 +- workarounds.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile.template b/Dockerfile.template index da91ac6..32c9346 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -1,6 +1,6 @@ FROM balenalib/%%RESIN_MACHINE_NAME%%-debian -RUN apt-get update && apt-get install -y curl wget build-essential libelf-dev awscli bc flex libssl-dev python +RUN apt-get update && apt-get install -y curl wget build-essential libelf-dev awscli bc flex libssl-dev python bison COPY . /usr/src/app WORKDIR /usr/src/app diff --git a/workarounds.sh b/workarounds.sh index fd00455..ab5fa87 100755 --- a/workarounds.sh +++ b/workarounds.sh @@ -22,6 +22,12 @@ if [[ "$device" == beagle* ]] ; then wget https://raw.githubusercontent.com/beagleboard/linux/4.14/arch/arm/kernel/module.lds -O "$PWD"/arch/arm/kernel/module.lds fi +if [[ "$device" == odroid-xu4 ]] ; then + echo Workaround odroid + # Fetch from 4.19.1 linux-stable + wget https://raw.githubusercontent.com/gregkh/linux/cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65/arch/arm/kernel/module.lds -O "$PWD"/arch/arm/kernel/module.lds +fi + if [[ "$device" == intel-nuc ]] ; then echo Workaround nuc # Workaround for the nuc image. Tools compiled expecting /lib/ld-linux-x86-64.so.2 while it is in /lib64