50b731f1b7
Derivative of Redox OS (https://www.redox-os.org) adding: - AMD GPU driver (amdgpu) via LinuxKPI compat layer - ext4 filesystem support (ext4d scheme daemon) - ACPI fixes for AMD bare metal (x2APIC, DMAR, IVRS, MCFG) - Custom branding (hostname, os-release, boot identity) Build system is full upstream Redox with RBOS overlay in local/. Patches for kernel, base, and relibc are symlinked from local/patches/ and protected from make clean/distclean. Custom recipes live in local/recipes/ with symlinks into the recipes/ search path. Build: make all CONFIG_NAME=redbear-full Sync: ./local/scripts/sync-upstream.sh
26 lines
617 B
Bash
26 lines
617 B
Bash
GIT=https://gitlab.redox-os.org/redox-os/rust-cairo.git
|
|
BUILD_DEPENDS=(cairo expat fontconfig freetype2 libpng pixman zlib)
|
|
CARGOFLAGS="--example gui"
|
|
|
|
function recipe_build {
|
|
sysroot="$(realpath ../sysroot)"
|
|
cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
|
|
-- \
|
|
-L "${sysroot}/lib" \
|
|
-l cairo \
|
|
-l fontconfig \
|
|
-l expat \
|
|
-l pixman-1 \
|
|
-l freetype \
|
|
-l png \
|
|
-l z
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
mkdir -pv "$dest/bin"
|
|
cp -v "target/${TARGET}/release/examples/gui" "$dest/bin/rust-cairo"
|
|
skip=1
|
|
}
|