From c521660aa159701d670f7e6a9956f5d90125fb87 Mon Sep 17 00:00:00 2001 From: gikidy Date: Tue, 3 Mar 2009 04:29:29 +0000 Subject: Linux split replaced by BaseTools Split. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7776 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/BootSector/GNUmakefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'DuetPkg/BootSector') diff --git a/DuetPkg/BootSector/GNUmakefile b/DuetPkg/BootSector/GNUmakefile index 2b513c6..e052620 100644 --- a/DuetPkg/BootSector/GNUmakefile +++ b/DuetPkg/BootSector/GNUmakefile @@ -1,6 +1,8 @@ # Just use host GCC to compile boot sector image. ASM=gcc -DLINK=ld +DLINK=ld + +BASETOOLS_DIR=$(WORKSPACE)/Conf/BaseToolsSource/Source/C/bin ASSEMBLY_CODE_FILE_LIST = $(MODULE_DIR)/bootsect.S \ $(MODULE_DIR)/bs16.S \ @@ -101,9 +103,7 @@ $(OUTPUT_DIR)/efi32.o: $(MODULE_DIR)/efi32.S $(OUTPUT_DIR)/efi32.com: $(OUTPUT_DIR)/efi32.o $(DLINK) --oformat binary -o $(OUTPUT_DIR)/efi32.com $(OUTPUT_DIR)/efi32.o -Ttext 0 -Map $(OUTPUT_DIR)/efi32.map $(OUTPUT_DIR)/efi32.com2: $(OUTPUT_DIR)/efi32.com - split -b 135168 $(OUTPUT_DIR)/efi32.com - mv xaa $(OUTPUT_DIR)/efi32.com1 - mv xab $(OUTPUT_DIR)/efi32.com2 + $(BASETOOLS_DIR)/Split -f $(OUTPUT_DIR)/efi32.com -p $(OUTPUT_DIR) -o efi32.com1 -p $(OUTPUT_DIR) -t efi32.com2 -s 135168 # efi64.S $(OUTPUT_DIR)/efi64.o: $(MODULE_DIR)/efi64.S @@ -111,10 +111,7 @@ $(OUTPUT_DIR)/efi64.o: $(MODULE_DIR)/efi64.S $(OUTPUT_DIR)/efi64.com: $(OUTPUT_DIR)/efi64.o $(DLINK) --oformat binary -o $(OUTPUT_DIR)/efi64.com $(OUTPUT_DIR)/efi64.o -Ttext 0 -Map $(OUTPUT_DIR)/efi64.map $(OUTPUT_DIR)/efi64.com2: $(OUTPUT_DIR)/efi64.com - split -b 135168 $(OUTPUT_DIR)/efi64.com - mv xaa $(OUTPUT_DIR)/efi64.com1 - mv xab $(OUTPUT_DIR)/efi64.com2 - + $(BASETOOLS_DIR)/Split -f $(OUTPUT_DIR)/efi64.com -p $(OUTPUT_DIR) -o efi64.com1 -p $(OUTPUT_DIR) -t efi64.com2 -s 135168 clean: ifneq ($(OUTPUT_DIR), ) -- cgit v1.1