Skip to content

Commit

Permalink
Try and make the builds a little more tarball friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
r0m30 committed Jul 22, 2017
1 parent 568c77e commit f678544
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions images/buildUEFI64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -x
# Build a custom UEFI linux based PBA image
## define releases for tools
. conf
VERSIONINFO=`git describe --dirty` || VERSIONINFO=downloaded
VERSIONINFO=`git describe --dirty` || VERSIONINFO=tarball
BUILDTYPE=UEFI64
BUILDIMG=${BUILDTYPE}-${VERSIONINFO}.img

Expand Down Expand Up @@ -34,4 +34,4 @@ sudo cp ../scratch/buildroot/64bit/images/rootfs.cpio.xz image/EFI/boot/
sudo cp ../buildroot/syslinux.cfg image/EFI/boot/
sudo umount image
sudo losetup -d $LOOPDEV
gzip ${BUILDIMG}
gzip ${BUILDIMG}
2 changes: 1 addition & 1 deletion images/buildbios
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -x
# Build a custom bootable image for BIOS machines
## define releases for tools
. conf
VERSIONINFO=`git describe --dirty`
VERSIONINFO=`git describe --dirty` || VERSIONINFO=tarball
BUILDTYPE=BIOS32
BUILDIMG=${BUILDTYPE}-${VERSIONINFO}.img

Expand Down
3 changes: 1 addition & 2 deletions images/legacypba
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ set -x
# Build the bios PBA
## define releases for tools
. conf

VERSIONINFO=`git describe --dirty`
VERSIONINFO=`git describe --dirty` || VERSIONINFO=tarball
SYSLINUX_PBA=../../../syslinux
BUILDTYPE=biospba
BUILDIMG=${BUILDTYPE}-${VERSIONINFO}.img
Expand Down
10 changes: 8 additions & 2 deletions linux/GitVersion.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash
GITVER=`git describe --dirty`
echo "#define GIT_VERSION " \"$GITVER\"
set -x
GIT=`which git`
if [ "x"${GIT} == "x" ]; then
echo "#define GIT_VERSION \"tarball\""
else
GITVER=`git describe --dirty`
echo "#define GIT_VERSION " \"$GITVER\"
fi

0 comments on commit f678544

Please sign in to comment.