Skip to content

Commit

Permalink
Merge pull request #18 from snapcore/fix-build
Browse files Browse the repository at this point in the history
Fix snapcraft.yaml not to FTBFS using newer snapcraft versions.
  • Loading branch information
sil2100 committed Jan 21, 2020
2 parents d3702ea + 391496f commit db9ef6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ parts:
source: git:https://git.denx.de/u-boot.git
source-branch: v2017.05
override-build: |
git apply ../../../uboot.patch
git apply ../../../project/uboot.patch
make rpi_2_defconfig
CROSS_COMPILE=arm-linux-gnueabihf- make
mkdir -p $SNAPCRAFT_PART_INSTALL/boot-assets
cp u-boot.bin $SNAPCRAFT_PART_INSTALL/boot-assets/uboot2.bin
tools/mkenvimage -r -s 131072 -o $SNAPCRAFT_PART_INSTALL/uboot.env ../../../uboot.env.in
tools/mkenvimage -r -s 131072 -o $SNAPCRAFT_PART_INSTALL/uboot.env ../../../project/uboot.env.in
ln -s uboot.env $SNAPCRAFT_PART_INSTALL/uboot.conf
build-packages:
- bison
Expand All @@ -42,7 +42,7 @@ parts:
source: git:https://git.denx.de/u-boot.git
source-tag: v2019.04
override-build: |
git apply ../../../uboot3.patch
git apply ../../../project/uboot3.patch
make rpi_3_32b_defconfig
CROSS_COMPILE=arm-linux-gnueabihf- make
mkdir -p $SNAPCRAFT_PART_INSTALL/boot-assets
Expand Down Expand Up @@ -105,7 +105,7 @@ parts:
plugin: nil
override-build: |
set -x
export TREE="../../../psplash"
export TREE="../../../project/psplash"
. ${TREE}/config
if ! $(echo "$FONT"|grep -q ^/); then
FONT="${TREE}/${FONT}"
Expand All @@ -121,7 +121,7 @@ parts:
./configure --build= x86_64-linux-gnu --host=arm-linux CC=/usr/bin/arm-linux-gnueabihf-gcc || cat config.log
CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make
rm -rf $SNAPCRAFT_PART_INSTALL/usr
cp -a ../../../psplash/initrd .
cp -a ../../../project/psplash/initrd .
mkdir -p initrd/bin
cp psplash initrd/bin
mkdir -p $SNAPCRAFT_PART_INSTALL/boot-assets
Expand Down

0 comments on commit db9ef6a

Please sign in to comment.