Merge branch 'main' of https://github.com/Ella-0/lazybox
This commit is contained in:
commit
7c0fa83de8
4 changed files with 73 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
dd if=../tiny-linux-bootloader/disk of=lazybox.img
|
||||
|
||||
exit
|
||||
TOTAL=`stat -c %s lazybox.img`
|
||||
|
||||
SECTOR=$(($TOTAL / 512))
|
||||
|
|
28
pkgs/nasm/build.sh
Normal file
28
pkgs/nasm/build.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
pkgname=nasm
|
||||
pkgver=2.15
|
||||
pkgrel=1
|
||||
bad="gmake"
|
||||
|
||||
fetch(){
|
||||
curl "https://www.nasm.us/pub/nasm/releasebuilds/$pkgver/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build(){
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--build=x86_64-unknown-linux-musl \
|
||||
--host=x86_64-unknown-linux-musl
|
||||
--prefix=/usr
|
||||
gmake
|
||||
}
|
||||
|
||||
package(){
|
||||
cd $pkgname-$pkgver
|
||||
gmake DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
15
pkgs/tiny-linux-bootloader/build.patch
Normal file
15
pkgs/tiny-linux-bootloader/build.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- build.sh
|
||||
+++ build.sh
|
||||
@@ -16,9 +16,9 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
INPUT="bsect.asm"
|
||||
-OUTPUT="disk"
|
||||
-KERN="./barebones"
|
||||
-RD="./big.init"
|
||||
+OUTPUT="/tiny-linux-bootloader/disk"
|
||||
+KERN="/lazybox/isoout/vmlinuz"
|
||||
+RD="/lazybox/isoout/initramfs.img"
|
||||
|
||||
#size of kern + ramdisk
|
||||
K_SZ=`stat -c %s $KERN`
|
29
pkgs/tiny-linux-bootloader/build.sh
Normal file
29
pkgs/tiny-linux-bootloader/build.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
patch -p1 < ../../build.patch
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
mkdir /tiny-linux-bootloader
|
||||
CURR_DIR=$(pwd)
|
||||
|
||||
cd ./../../../../
|
||||
./geninitrd.sh
|
||||
|
||||
cd $CURR_DIR
|
||||
./build.sh
|
||||
|
||||
cd ./../../../../
|
||||
./createimg.sh
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
Loading…
Reference in a new issue