Skip to content

Commit 5820fe7

Browse files
committed
Update package list
1 parent 3b9528b commit 5820fe7

File tree

4 files changed

+29
-20
lines changed

4 files changed

+29
-20
lines changed

build/edk2-bhyve/build.sh renamed to build/bhyve-fw/build.sh

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ BUILD_DEPENDS_IPS="
2323
developer/nasm
2424
"
2525

26-
# XXX
27-
BUILD_DEPENDS_IPS=
28-
2926
PROG=uefi-edk2
3027
PKG=system/bhyve/firmware
3128
VER=20160525
@@ -66,16 +63,26 @@ clone_source(){
6663
build() {
6764
pushd $TMPDIR/$BUILDDIR/$PROG >/dev/null || logerr "pushd"
6865

69-
logmsg "-- Cleaning source tree..."
66+
MAKE_ARGS="
67+
AS=/usr/bin/gas
68+
AR=/usr/bin/gar
69+
LD=/usr/bin/gld
70+
OBJCOPY=/usr/bin/gobjcopy
71+
CC=${OOGCC_BIN}gcc
72+
CXX=${OOGCC_BIN}g++
73+
"
74+
75+
logmsg "-- Cleaning source tree"
7076

71-
logcmd gmake -C BaseTools clean
77+
logcmd gmake $MAKE_ARGS -C BaseTools clean
7278
rm -f Build Conf/{target,build_rule,tools_def}.txt Conf/.cache 2>/dev/null
7379

74-
logmsg "-- Building tools..."
80+
logmsg "-- Building tools"
7581

7682
# First build the tools. The code isn't able to detect the build
7783
# architecture - it doesn't expect `uname -m` to return `i86pc`
78-
logcmd gmake -C BaseTools ARCH=X64 || logerr "BaseTools build failed"
84+
logcmd gmake $MAKE_ARGS ARCH=X64 -C BaseTools \
85+
|| logerr "BaseTools build failed"
7986

8087
BUILD_ARGS="-DDEBUG_ON_SERIAL_PORT=TRUE -DFD_SIZE_2MB -DCSM_ENABLE=TRUE"
8188

@@ -86,22 +93,16 @@ build() {
8693
export NASM_PREFIX=/usr/bin/i386/
8794
source edksetup.sh
8895

89-
logmsg "-- Building compatibility support module (CSM)..."
90-
logcmd gmake \
91-
AS=/usr/bin/gas \
92-
AR=/usr/bin/gar \
93-
LD=/usr/bin/gld \
94-
OBJCOPY=/usr/bin/gobjcopy \
95-
CC=${OOGCC_BIN}gcc \
96-
CXX=${OOGCC_BIN}g++ \
97-
-C BhyvePkg/Csm/BhyveCsm16/
96+
logmsg "-- Building compatibility support module (CSM)"
97+
logcmd gmake $MAKE_ARGS -C BhyvePkg/Csm/BhyveCsm16/ \
98+
|| logerr "CSM build failed"
9899

99100
for mode in RELEASE DEBUG; do
100-
logmsg "-- Building $mode Firmware..."
101+
logmsg "-- Building $mode firmware"
101102
logcmd `which build` \
102103
-t OOGCC -a X64 -b $mode \
103104
-p BhyvePkg/BhyvePkgX64.dsc \
104-
$BUILD_ARGS
105+
$BUILD_ARGS || logerr "$mode build failed"
105106
done
106107
) || logerr "failed"
107108

@@ -111,6 +112,7 @@ build() {
111112
install() {
112113
pushd $TMPDIR/$BUILDDIR/$PROG >/dev/null || logerr "pushd"
113114
logcmd mkdir -p $DESTDIR/usr/share/bhyve/firmware
115+
cp OvmfPkg/License.txt $DESTDIR/LICENCE
114116
for mode in RELEASE DEBUG; do
115117
logcmd cp Build/BhyveX64/${mode}_OOGCC/FV/BHYVE.fd \
116118
$DESTDIR/usr/share/bhyve/firmware/BHYVE_$mode.fd
@@ -119,9 +121,12 @@ install() {
119121
}
120122

121123
init
124+
prep_build
122125
clone_source
123126
build
124127
install
128+
# Reset version for package creation
129+
VER=$VERHUMAN
125130
make_package
126131
clean_up
127132

build/edk2-bhyve/local.mog renamed to build/bhyve-fw/local.mog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
# Copyright 2017 OmniOS Community Edition (OmniOSce) Association.
1111

12-
license LICENSE license=BSD
12+
license LICENCE license=Intel
13+
<transform file path=LICENCE -> drop>
1314

15+
<transform file -> set mode 0755>
1416
link path=usr/share/bhyve/firmware/BHYVE.fd target=BHYVE_RELEASE.fd
1517

build/nasm/local.mog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
# Copyright 2017 OmniOS Community Edition (OmniOSce) Association.
1111

12-
license LICENCE license=BSD
12+
license LICENSE license=BSD
1313

doc/packages.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
| compress/zip | 3.0 | http://www.info-zip.org/Zip.html
1111
| data/iso-codes | 3.77 | http://pkg-isocodes.alioth.debian.org/downloads/
1212
| database/sqlite-3 | 3210000 | https://www.sqlite.org/download.html
13+
| developer/acpi/compiler | 20171110 | https://www.acpica.org/downloads/
1314
| developer/bmake | 20171126 | http://www.crufty.net/ftp/pub/sjg/
1415
| developer/build/autoconf | 2.69 | https://git.savannah.gnu.org/cgit/autoconf.git/refs/tags
1516
| developer/build/automake | 1.15.1 | https://git.savannah.gnu.org/cgit/automake.git/refs/tags
@@ -21,6 +22,7 @@
2122
| developer/java/jdk | 1.7.0_151-b01 | http://hg.openjdk.java.net/jdk7u/jdk7u/tags
2223
| developer/lexer/flex | 2.6.4 | https://github.com/westes/flex/releases
2324
| developer/macro/gnu-m4 | 1.4.18 | http://git.savannah.gnu.org/cgit/m4.git/refs/tags
25+
| developer/nasm | 2.13.02 | http://www.nasm.us/pub/nasm/releasebuilds
2426
| developer/parser/bison | 3.0.4 | https://git.savannah.gnu.org/cgit/bison.git/refs/tags
2527
| developer/pkg-config | 0.29.2 | https://pkg-config.freedesktop.org/releases
2628
| developer/versioning/git | 2.15.1 | https://www.kernel.org/pub/software/scm/git

0 commit comments

Comments
 (0)