sbsigntools/autogen.sh
Jeremy Kerr ffc1f41ace Fix warnings from added -W flags
Fix a few warnings:

 idc.c: In function ‘IDC_get’:
 idc.c:248:12: warning: ‘idclen’ may be used uninitialised in this function [-Wuninitialized]

 image.c: In function ‘image_load’:
 image.c:37:15: warning: unused variable ‘bytes_read’ [-Wunused-variable]

Plus, a bunch of strict-aliasing warnings:

 image.c:101:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 [ similar warnings trimmed ]

when compiling image.c. Since struct external_PEI_DOS_hdr uses char[]
types for all members, we need to use accessors here.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
2012-06-11 16:54:42 +08:00

33 lines
637 B
Bash
Executable file

#!/bin/bash
ccan_modules="talloc read_write_all build_assert"
# Add ccan upstream sources
if [ ! -e lib/ccan.git/Makefile ]
then
git submodule init
git submodule update
fi
# create ccan build tree
if [ ! -e lib/ccan ]
then
lib/ccan.git/tools/create-ccan-tree \
--build-type=automake lib/ccan $ccan_modules
fi
# Create generatable docs from git
(
echo "Authors of sbsigntool:"
echo
git log --format='%an' | sort -u | sed 's,^,\t,'
) > AUTHORS
# Generate simple ChangeLog
git log --date=short --format='%ad %t %an <%ae>%n%n * %s%n' > ChangeLog
# automagic
aclocal
autoheader
autoconf
automake --add-missing -Wno-portability