2021-02-04 15:29:09 +00:00
|
|
|
pkgname=tiny-linux-bootloader
|
|
|
|
pkgver=master
|
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl -L "https://github.com/owenson/tiny-linux-bootloader/archive/master.tar.gz" -o $pkgname-$pkgver.tar.xz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.xz
|
|
|
|
cd $pkgname-$pkgver
|
2021-02-04 17:33:58 +00:00
|
|
|
patch -p1 < ../../build.patch
|
2021-02-13 12:11:06 +00:00
|
|
|
patch -p1 < ../../bsect.patch
|
2021-04-18 10:13:32 +00:00
|
|
|
patch -p1 < ../../remove-dead.patch
|
2021-02-04 15:29:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-02-13 13:56:28 +00:00
|
|
|
|
|
|
|
rm -rf /tiny-linux-bootloader
|
2021-02-04 15:29:09 +00:00
|
|
|
mkdir /tiny-linux-bootloader
|
|
|
|
CURR_DIR=$(pwd)
|
2021-02-04 17:33:58 +00:00
|
|
|
|
|
|
|
cd ./../../../../
|
2021-02-04 15:29:09 +00:00
|
|
|
./geninitrd.sh
|
2021-02-04 17:33:58 +00:00
|
|
|
|
2021-02-04 15:29:09 +00:00
|
|
|
cd $CURR_DIR
|
|
|
|
./build.sh
|
2021-02-04 17:33:58 +00:00
|
|
|
|
|
|
|
cd ./../../../../
|
2021-02-04 15:29:09 +00:00
|
|
|
./createimg.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|