From 8a2ee049e462239c35d3a6dedfc23e5b90c8b194 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 2 Dec 2016 15:32:59 +0100 Subject: [PATCH 1/3] cbmem: Add version 4.5-474-g91bfa8e from git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cbmem is a utility to access the “coreboot memory region” CBMEM in memory. Unfortunately, it’s not in its separate repository, so the bee file has to be adapted, and the whole coreboot source needs to be downloaded. Use the git hash in the output of `git describe --tags` as extra version. ``` $ cbmem --help $ sudo cbmem -c # show console messages $ sudo cbmem -t # show time stamps ``` --- cbmem.be0 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100755 cbmem.be0 diff --git a/cbmem.be0 b/cbmem.be0 new file mode 100755 index 000000000..a771f2de1 --- /dev/null +++ b/cbmem.be0 @@ -0,0 +1,85 @@ +#!/usr/bin/env beesh + +# BEE_VERSION cbmem-4.5.474_g91bfa8e-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://review.coreboot.org/cgit/coreboot.git/snapshot/coreboot-${PKGEXTRAVERSION}.tar.bz2" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +sourcesubdir_append util/cbmem + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From d6c1fbc514b9fc2bc8521969a04be70d94d49907 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 2 Dec 2016 15:41:18 +0100 Subject: [PATCH 2/3] cbfstool: Add version 4.5-474-g91bfa8e from git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cbfstool is the utility to work with the “coreboot filesystem” CBFS, which is used to store files in the ROM image. Unfortunately, it’s not in its separate repository, so the bee file has to be adapted, and the whole coreboot source needs to be downloaded. Use the git hash in the output of `git describe --tags` as extra version. ``` $ cbfstool --help $ cbfstool build/coreboot.rom print ``` --- cbfstool.be0 | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100755 cbfstool.be0 diff --git a/cbfstool.be0 b/cbfstool.be0 new file mode 100755 index 000000000..51e245adc --- /dev/null +++ b/cbfstool.be0 @@ -0,0 +1,89 @@ +#!/usr/bin/env beesh + +# BEE_VERSION cbfstool-4.5.474_g91bfa8e-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://review.coreboot.org/cgit/coreboot.git/snapshot/coreboot-${PKGEXTRAVERSION}.tar.bz2" +SRCURL[1]="https://review.coreboot.org/cgit/vboot.git/snapshot/vboot-1e9245dfff914107ec06aac84f3b70c2df1f4a41.tar.bz2" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +sourcesubdir_append util/cbfstool + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +mee_extract() { + bee_extract "${@}" + start_cmd pwd + mv ${S}/vboot*/* ${S}/3rdparty/vboot +} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +mee_install() { + mkdir -p ${D}${BINDIR} + start_cmd cp -a ${B}/cbfstool ${D}${BINDIR} +} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From 9884c79bc19535fd41838f8600cb9e221c9c40e7 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 2 Dec 2016 15:43:26 +0100 Subject: [PATCH 3/3] nvramtool: Add version 4.5-474-g91bfa8e from git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nvramtool is a utility to read and write to the NVRAM (CMOS). With coreboot it can be used to configure certain options. Unfortunately, it’s not in its separate repository, so the bee file has to be adapted, and the whole coreboot source needs to be downloaded. Use the git hash in the output of `git describe --tags` as extra version. ``` $ nvramtool --help $ nvramtool -a ``` --- nvramtool.be0 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100755 nvramtool.be0 diff --git a/nvramtool.be0 b/nvramtool.be0 new file mode 100755 index 000000000..0f5717028 --- /dev/null +++ b/nvramtool.be0 @@ -0,0 +1,85 @@ +#!/usr/bin/env beesh + +# BEE_VERSION nvramtool-4.5.474_g91bfa8e-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://review.coreboot.org/cgit/coreboot.git/snapshot/coreboot-${PKGEXTRAVERSION}.tar.bz2" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +sourcesubdir_append util/nvramtool + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +##