mirror of
https://github.com/Dasharo/fwbuild.git
synced 2026-03-06 14:59:53 -08:00
28
example/FWBUILD
Normal file
28
example/FWBUILD
Normal file
@@ -0,0 +1,28 @@
|
||||
romname=novacustom-nv4x-heads
|
||||
_tag=0.9.0
|
||||
romver=${_tag//-/}
|
||||
romrel=2
|
||||
pkgdesc='Heads firmware for NovaCustom NV4x'
|
||||
arch=(x86_64)
|
||||
license=(GPL2)
|
||||
container=3mdeb/heads-docker:3.0.1
|
||||
srcname=heads
|
||||
_tag=novacustom_nv4x_adl_v0.9.0-rc2
|
||||
source=https://github.com/Dasharo/$srcname.git
|
||||
|
||||
# preparation, checkout, applying patches, etc
|
||||
prepare() {
|
||||
echo "=> PREPARE"
|
||||
git checkout $_tag
|
||||
}
|
||||
|
||||
# do the build, this is executed inside of the docker container
|
||||
build() {
|
||||
echo "=> BUILD"
|
||||
make BOARD=nitropad-nv41
|
||||
}
|
||||
|
||||
# copy and rename the binary, create zip, checksums, uefi capsule
|
||||
package() {
|
||||
echo "=> PACKAGE"
|
||||
}
|
||||
5
example/README.md
Normal file
5
example/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Example
|
||||
|
||||
Example FWBUILD file for NovaCustom NV4x ADL Heads v0.9.0.
|
||||
|
||||
In this directory, run `makefw`. The result should be a complete firmware binary.
|
||||
18
makefw
Executable file
18
makefw
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
source FWBUILD
|
||||
|
||||
mkdir -p src
|
||||
cd src
|
||||
|
||||
if [ -d $srcname ]; then
|
||||
echo "Source already present, skipping"
|
||||
else
|
||||
git clone $source
|
||||
fi
|
||||
|
||||
cd $srcname
|
||||
|
||||
declare -f build > .fwbuild
|
||||
|
||||
docker run --rm -it -v $PWD:$PWD -w $PWD $container bash -c "source .fwbuild && build"
|
||||
Reference in New Issue
Block a user