mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58:22 +00:00
build: use jinx in the build system
now uses jinx to build a cross toolchain, mlibc, bash and the kernel. also made scheduler temporarily run /usr/bin/bash instead of /sbin/init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
name=astral
|
||||
revision=1
|
||||
from_source=astral
|
||||
hostdeps="gcc-cross binutils-cross"
|
||||
imagedeps="base-devel nasm"
|
||||
|
||||
configure() {
|
||||
true
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
pushd ${base_dir}
|
||||
make kernel XCC=x86_64-astral-gcc
|
||||
popd
|
||||
|
||||
}
|
||||
|
||||
install() {
|
||||
true
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
name=bash
|
||||
revision=1
|
||||
from_source=bash
|
||||
imagedeps="base-devel"
|
||||
hostdeps="gcc-cross binutils-cross"
|
||||
deps="mlibc"
|
||||
|
||||
configure() {
|
||||
|
||||
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-readline --without-bash-malloc
|
||||
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
make -j ${parallelism}
|
||||
|
||||
}
|
||||
|
||||
install() {
|
||||
|
||||
make install DESTDIR=${dest_dir}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
name=mlibc
|
||||
from_source=mlibc
|
||||
revision=1
|
||||
hostdeps="gcc-cross binutils-cross"
|
||||
imagedeps="meson ninja git base-devel binutils"
|
||||
allow_network="yes"
|
||||
|
||||
|
||||
configure() {
|
||||
meson --cross-file ${base_dir}/util/crossfile --prefix=${prefix} ${source_dir}
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
ninja
|
||||
|
||||
}
|
||||
|
||||
install() {
|
||||
DESTDIR=${dest_dir} ninja install
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
name=mlibc-headers
|
||||
from_source=mlibc
|
||||
revision=1
|
||||
imagedeps="ninja meson base-devel"
|
||||
|
||||
configure() {
|
||||
meson --cross-file ${base_dir}/util/crossfile --prefix=${prefix} -Dheaders_only=true ${source_dir}
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
ninja
|
||||
|
||||
}
|
||||
|
||||
install() {
|
||||
DESTDIR=${dest_dir} ninja install
|
||||
}
|
||||
Reference in New Issue
Block a user