summaryrefslogtreecommitdiffstats
path: root/efi_memtest/Makefile
diff options
context:
space:
mode:
authorRegina König2020-07-28 01:00:45 +0200
committerRegina König2020-07-28 01:00:45 +0200
commit9bf2d35c6549f4c387a738838e9aba8230422e70 (patch)
tree013d5a0e904dc035ae2acdc9fd9640e18561a891 /efi_memtest/Makefile
parentcreated two different directories to separate files for efi and bios. moved s... (diff)
downloadmemtest86-9bf2d35c6549f4c387a738838e9aba8230422e70.tar.gz
memtest86-9bf2d35c6549f4c387a738838e9aba8230422e70.tar.xz
memtest86-9bf2d35c6549f4c387a738838e9aba8230422e70.zip
adjusted some pointer to string and vice versa conversions. Makefile produces efi file
Diffstat (limited to 'efi_memtest/Makefile')
-rw-r--r--efi_memtest/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/efi_memtest/Makefile b/efi_memtest/Makefile
index c673435..c351d0c 100644
--- a/efi_memtest/Makefile
+++ b/efi_memtest/Makefile
@@ -45,25 +45,25 @@ all: clean MemtestEfi.efi
$(MAIN_FILE).efi: $(MAIN_FILE).dll
- ./Include/GenFw -e UEFI_APPLICATION -o OUTPUT/$MAIN_FILE.efi OUTPUT/$MAIN_FILE.dll
+ ./memtest86+/efi/Include/GenFw -e UEFI_APPLICATION -o $(MAIN_FILE).efi $(MAIN_FILE).dll
$(MAIN_FILE).dll: $(MAIN_FILE).lib
- $(CC) $(CFLAGS) $(PREPROCESSOR) $(M)-o $(MAIN_FILE).dll \
+ $(CC) $(CFLAGS) $(PREPROCESSOR) $(M) -o $(MAIN_FILE).dll \
-nostdlib \
-Wl,-n,-q,--gc-sections \
-Wl,--entry,_ModuleEntryPoint \
- -Wl,-Map,OUTPUT/$MAIN_FILE.map,--whole-archive \
+ -Wl,-Map,$(MAIN_FILE).map,--whole-archive \
-Wl,-melf_x86_64,--oformat=elf64-x86-64,-pie \
-Wl,--start-group,@static_library_files.lst,--end-group \
-Wl,--defsym=PECOFF_HEADER_SIZE=0x228 \
- -Wl,--script=Include/GccBase.lds \
+ -Wl,--script=memtest86+/efi/Include/GccBase.lds \
-z common-page-size=0x40 \
-u _ModuleEntryPoint \
-DSTRING_ARRAY_NAME=${MAIN_FILE}Strings \
-I OUTPUT/ \
-I Library/
- objcopy --strip-unneeded -R .eh_frame -v OUTPUT/$(MAIN_FILE).dll OUTPUT/$(MAIN_FILE).dll
+ objcopy --strip-unneeded -R .eh_frame -v $(MAIN_FILE).dll $(MAIN_FILE).dll
$(MAIN_FILE).lib: $(OBJS)
gcc-ar crv OUTPUT/$(MAIN_FILE).lib $(OBJS)
@@ -95,13 +95,14 @@ clean:
rm -f memtest86+/*.o
rm -f *.o
rm -f MemtestEfi.obj
+ rm MemtestEfi.map
-# move:
-# cp -OUTPUT/MemtestEfi.efi ../test_code/hda-contents
+move:
+ cp MemtestEfi.efi ../test_code/hda-contents
-# run:
-# sudo ./run.sh
+run:
+ sudo ./run.sh