mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-23 22:36:48 +03:00
build: which -> command -v
This commit is contained in:
parent
52cfc27d3e
commit
7d44e79abc
4
Makefile
4
Makefile
@ -9,10 +9,10 @@ TOOLCHAIN = x86_64-elf
|
||||
TOOLCHAIN_CC = $(TOOLCHAIN)-gcc
|
||||
TOOLCHAIN_AR = $(TOOLCHAIN)-ar
|
||||
|
||||
ifeq ($(shell export "PATH=$(PATH)"; which $(TOOLCHAIN_CC)), )
|
||||
ifeq ($(shell export "PATH=$(PATH)"; command -v $(TOOLCHAIN_CC) ; ), )
|
||||
TOOLCHAIN_CC := gcc
|
||||
endif
|
||||
ifeq ($(shell export "PATH=$(PATH)"; which $(TOOLCHAIN_AR)), )
|
||||
ifeq ($(shell export "PATH=$(PATH)"; command -v $(TOOLCHAIN_AR) ; ), )
|
||||
TOOLCHAIN_AR := ar
|
||||
endif
|
||||
|
||||
|
@ -79,7 +79,7 @@ make toolchain
|
||||
### Building Limine
|
||||
|
||||
In order to build Limine, the following packages have to be installed: `bash`, `make`,
|
||||
`git`, `which`, `nasm`, `mtools` (optional, necessary to build `limine-eltorito-efi.bin`).
|
||||
`git`, `nasm`, `mtools` (optional, necessary to build `limine-eltorito-efi.bin`).
|
||||
Furthermore, either the toolchain must have been built in the previous paragraph,
|
||||
or `gcc` or `llvm/clang` must also be installed.
|
||||
`GNU binutils` is necessary in order to build the UEFI port of Limine. A full
|
||||
|
@ -10,13 +10,13 @@ TOOLCHAIN_CC = $(TOOLCHAIN)-gcc
|
||||
TOOLCHAIN_LD = $(TOOLCHAIN)-ld
|
||||
TOOLCHAIN_OBJCOPY = $(TOOLCHAIN)-objcopy
|
||||
|
||||
ifeq ($(shell which $(TOOLCHAIN_CC)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_CC) ; ), )
|
||||
TOOLCHAIN_CC := gcc
|
||||
endif
|
||||
ifeq ($(shell which $(TOOLCHAIN_LD)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_LD) ; ), )
|
||||
TOOLCHAIN_LD := ld
|
||||
endif
|
||||
ifeq ($(shell which $(TOOLCHAIN_OBJCOPY)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_OBJCOPY) ; ), )
|
||||
TOOLCHAIN_OBJCOPY := objcopy
|
||||
endif
|
||||
|
||||
|
@ -21,19 +21,19 @@ TOOLCHAIN_OBJCOPY = $(TOOLCHAIN)-objcopy
|
||||
TOOLCHAIN_OBJDUMP = $(TOOLCHAIN)-objdump
|
||||
TOOLCHAIN_READELF = $(TOOLCHAIN)-readelf
|
||||
|
||||
ifeq ($(shell which $(TOOLCHAIN_CC)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_CC) ; ), )
|
||||
TOOLCHAIN_CC := gcc
|
||||
endif
|
||||
ifeq ($(shell which $(TOOLCHAIN_LD)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_LD) ; ), )
|
||||
TOOLCHAIN_LD := ld
|
||||
endif
|
||||
ifeq ($(shell which $(TOOLCHAIN_OBJCOPY)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_OBJCOPY) ; ), )
|
||||
TOOLCHAIN_OBJCOPY := objcopy
|
||||
endif
|
||||
ifeq ($(shell which $(TOOLCHAIN_OBJDUMP)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_OBJDUMP) ; ), )
|
||||
TOOLCHAIN_OBJDUMP := objdump
|
||||
endif
|
||||
ifeq ($(shell which $(TOOLCHAIN_READELF)), )
|
||||
ifeq ($(shell command -v $(TOOLCHAIN_READELF) ; ), )
|
||||
TOOLCHAIN_READELF := readelf
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user