Skip to content

Commit

Permalink
feat: add Make
Browse files Browse the repository at this point in the history
Build Make in toolchain for later use in tools

- chore: use internal make for linux-headers to avoid unnecessary reentrant dependency

Signed-off-by: Dmitry Sharshakov <[email protected]>
  • Loading branch information
dsseng committed Jan 8, 2025
1 parent f58f2a6 commit dba7036
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ vars:
gmp_sha256: fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
gmp_sha512: c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84

# renovate: datasource=git-tags depName=git://git.savannah.gnu.org/make.git
make_version: 4.4.1
make_sha256: dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3
make_sha512: 145260cbd6a8226cef3dfef0c8baba31847beaebc7e6b65d39d02715fd4f4cab9b139b6c3772e550088d4f9ae80c6d3ed20b9a7664c693644dfb96b4cb60e67c

# renovate: datasource=git-tags depName=https://gitlab.inria.fr/mpc/mpc.git
mpc_version: 1.3.1
mpc_sha256: ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
Expand Down
Binary file modified deps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion linux-headers/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: linux-headers
install:
- make
- patch
dependencies:
- stage: bootstrap
- stage: musl
- stage: make
steps:
- sources:
- url: https://cdn.kernel.org/pub/linux/kernel/v{{ regexReplaceAll ".\\d+\\.\\d+$" .linux_version "${1}" }}.x/linux-{{ .linux_version }}.tar.xz
Expand Down
33 changes: 33 additions & 0 deletions make/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: make
install:
- make
dependencies:
- stage: binutils
- stage: gcc
steps:
- sources:
- url: https://ftp.gnu.org/gnu/make/make-{{ .make_version }}.tar.gz
destination: make.tar.gz
sha256: "{{ .make_sha256 }}"
sha512: "{{ .make_sha512 }}"
env:
PATH: "{{ .TOOLCHAIN }}/bin:{{ .PATH }}"
prepare:
- |
tar -xzf make.tar.gz --strip-components=1
mkdir build
cd build
../configure \
--prefix=${TOOLCHAIN} \
--without-guile
build:
- |
cd build
make -j $(nproc)
install:
- |
cd build
make install
finalize:
- from: "{{ .TOOLCHAIN }}"
to: "{{ .TOOLCHAIN }}"
1 change: 1 addition & 0 deletions toolchain/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dependencies:
- stage: gcc
- stage: linux-headers
- stage: musl
- stage: make
steps:
- env:
PATH: "{{ .TOOLCHAIN }}/bin:{{ .PATH }}"
Expand Down

0 comments on commit dba7036

Please sign in to comment.