From ef84551c02de025de6a21132d5f54403b97c0803 Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Wed, 24 Apr 2024 22:49:41 +0100 Subject: [PATCH] OpenDuet: Avoid building non-required boot sector files Saves only a minimal amount of time, but avoids building e.g. unused StartX64 with default PAGE_TABLE location in IA32. --- Legacy/BootSector/Makefile | 4 ++++ build_duet.tool | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Legacy/BootSector/Makefile b/Legacy/BootSector/Makefile index 12f60c34..577f56c9 100644 --- a/Legacy/BootSector/Makefile +++ b/Legacy/BootSector/Makefile @@ -10,6 +10,10 @@ PRODUCTS64=$(BINDIR)/StartX64_$(PAGE_TABLE).com $(BINDIR)/StartX64_$(PAGE_TABLE_ all: $(PRODUCTS32) $(PRODUCTS64) +IA32: $(PRODUCTS32) + +X64: $(PRODUCTS64) + clean: $(RM) -f $(BINDIR)/*.com diff --git a/build_duet.tool b/build_duet.tool index 8d4e4953..309e7e56 100755 --- a/build_duet.tool +++ b/build_duet.tool @@ -77,7 +77,7 @@ imgbuild() { # Build bootsectors. mkdir -p "${BOOTSECTORS}" || exit 1 cd "${BOOTSECTORS}"/.. || exit 1 - make || exit 1 + make "${arch}" || exit 1 cd - || exit 1 # Concatenate bootsector into the resulting image.