]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/GNUmakefile
Update the copyright notice format
[mirror_edk2.git] / DuetPkg / BootSector / GNUmakefile
index 2b513c6e862049f5cbd7dabb50f19aeae57b36bc..66298daf3b40da5ff12f70da9bbdebb461f78fb0 100644 (file)
@@ -1,31 +1,45 @@
-# Just use host GCC to compile boot sector image.\r
-ASM=gcc\r
-DLINK=ld\r
-\r
+## @file\r
+#  Just use host GCC to compile boot sector image.\r
+#\r
+#  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution. The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#\r
+##\r
+
+ASM=gcc
+DLINK=ld
+
 ASSEMBLY_CODE_FILE_LIST = $(MODULE_DIR)/bootsect.S \
-                          $(MODULE_DIR)/bs16.S \\r
-                          $(MODULE_DIR)/bs32.S \\r
-                          $(MODULE_DIR)/efi32.S \\r
-                          $(MODULE_DIR)/Gpt.S \\r
-                          $(MODULE_DIR)/Mbr.S \\r
-                          $(MODULE_DIR)/start.S \\r
-                          $(MODULE_DIR)/start16.S \\r
+                          $(MODULE_DIR)/bs16.S \
+                          $(MODULE_DIR)/bs32.S \
+                          $(MODULE_DIR)/efi32.S \
+                          $(MODULE_DIR)/Gpt.S \
+                          $(MODULE_DIR)/Mbr.S \
+                          $(MODULE_DIR)/start.S \
+                          $(MODULE_DIR)/start16.S \
                           $(MODULE_DIR)/start32.S
 
-TARGET_FILES = $(OUTPUT_DIR)/bootsect.com \\r
-               $(OUTPUT_DIR)/bs16.com \\r
-               $(OUTPUT_DIR)/bs32.com \\r
-               $(OUTPUT_DIR)/Gpt.com \\r
-               $(OUTPUT_DIR)/Mbr.com \\r
-               $(OUTPUT_DIR)/start.com \\r
-               $(OUTPUT_DIR)/start16.com \\r
+TARGET_FILES = $(OUTPUT_DIR)/bootsect.com \
+               $(OUTPUT_DIR)/bs16.com \
+               $(OUTPUT_DIR)/bs32.com \
+               $(OUTPUT_DIR)/Gpt.com \
+               $(OUTPUT_DIR)/Mbr.com \
+               $(OUTPUT_DIR)/start.com \
+               $(OUTPUT_DIR)/start16.com \
                $(OUTPUT_DIR)/start32.com \
-               $(OUTPUT_DIR)/efi32.com2 \r
-               #$(OUTPUT_DIR)/start64.com \\r
-               #$(OUTPUT_DIR)/st16_64.com \\r
-               #$(OUTPUT_DIR)/st32_64.com \\r
-               #$(OUTPUT_DIR)/efi64.com2 
-\r
+               $(OUTPUT_DIR)/efi32.com2
+               #$(OUTPUT_DIR)/start64.com \
+               #$(OUTPUT_DIR)/st16_64.com \
+               #$(OUTPUT_DIR)/st32_64.com \
+               #$(OUTPUT_DIR)/efi64.com2
+
 .PHONY : all
 all: $(TARGET_FILES)
 
@@ -101,9 +115,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
+       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,18 +123,14 @@ $(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
-
+       Split -f $(OUTPUT_DIR)/efi64.com -p $(OUTPUT_DIR) -o efi64.com1 -p $(OUTPUT_DIR) -t efi64.com2 -s 135168
 
 clean:
 ifneq ($(OUTPUT_DIR), )
        rm -r $(OUTPUT_DIR)
 endif
 ifneq ($(DEBUG_DIR), )
-       rm -r $(DEBUG_DIR) 
+       rm -r $(DEBUG_DIR)
 endif
 
 
-