From 8337e8c56f913d8e4ef31babc1990d0eb06dcf6d Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 4 Jul 2023 20:42:28 -0300 Subject: [PATCH] ports: binutils --- Makefile | 2 +- recipes/binutils | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 recipes/binutils diff --git a/Makefile b/Makefile index 28c117d4..54297fd5 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ full: cd sysroot; tar -cf $(INITRD) * minimal: - ./jinx install minimalsysroot mlibc + ./jinx install minimalsysroot mlibc bash coreutils cd minimalsysroot; tar -cf $(INITRD) * kernel: diff --git a/recipes/binutils b/recipes/binutils new file mode 100644 index 00000000..cbcede0c --- /dev/null +++ b/recipes/binutils @@ -0,0 +1,18 @@ +name=binutils +revision=1 +from_source=binutils +imagedeps="base-devel" +hostdeps="xgcc xbinutils automake autoconf" +deps="mlibc" + +configure() { + ${source_dir}/configure --host=x86_64-astral --target=x86_64-astral --prefix=${prefix} --disable-werror +} + +build() { + make -j${parallelism} +} + +install() { + make install DESTDIR="${dest_dir}" +}