mirror of
https://github.com/taigrr/gopher-os
synced 2025-01-18 04:43:13 -08:00
Added another missing check before generating ISOs.
This commit is contained in:
parent
e428d6c672
commit
7f3db2235d
7
Makefile
7
Makefile
@ -64,9 +64,14 @@ binutils_version_check:
|
||||
@echo "[binutils] checking that installed objcopy version is >= $(MIN_OBJCOPY_VERSION)"
|
||||
@if [ "$(HAVE_VALID_OBJCOPY)" != "y" ]; then echo "[binutils] error: a more up to date binutils installation is required" ; exit 1 ; fi
|
||||
|
||||
iso_prereq: xorriso_check grub-pc-bin_check
|
||||
|
||||
xorriso_check:
|
||||
@if xorriso --version >/dev/null 2>&1; then exit 0; else echo "Install xorriso via 'sudo apt install xorriso'." ; exit 1 ; fi
|
||||
|
||||
grub-pc-bin_check:
|
||||
@ if dpkg -l grub-pc-bin > /dev/null; then exit 0; else echo "Install package grub-pc-bin via 'sudo apt install grub-pc-bin'."; exit 1; fi
|
||||
|
||||
linker_script:
|
||||
@echo "[sed] extracting LMA and VMA from constants.inc"
|
||||
@echo "[gcc] pre-processing arch/$(ARCH)/script/linker.ld.in"
|
||||
@ -81,7 +86,7 @@ $(BUILD_DIR)/arch/$(ARCH)/asm/%.o: arch/$(ARCH)/asm/%.s
|
||||
|
||||
iso: $(iso_target)
|
||||
|
||||
$(iso_target): xorriso_check $(kernel_target)
|
||||
$(iso_target): iso_prereq $(kernel_target)
|
||||
@echo "[grub] building ISO kernel-$(ARCH).iso"
|
||||
|
||||
@mkdir -p $(BUILD_DIR)/isofiles/boot/grub
|
||||
|
Loading…
x
Reference in New Issue
Block a user