OPTIMFLAGS = -fno-strict-aliasing -mno-red-zone -Wno-address -Os
DEBUGFLAGS = -Wall -Wno-missing-braces -Wno-array-bounds -ffunction-sections -fdata-sections
-CFLAGS = $(OPTIMFLAGS) -g -fshort-wchar -fno-stack-protector $(DEBUGFLAGS) -c -include AutoGen.h
+CFLAGS = $(OPTIMFLAGS) -g -fshort-wchar -fno-stack-protector $(DEBUGFLAGS) -c -include AutoGen.h -DHOST_EFI_EDK2
prefix = /usr/bin/
CC = $(prefix)gcc
$(GENFW) -e UEFI_DRIVER -o $(BUILDME) $(DLL_TARGET)
# $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
# -j .rela -j .reloc --rename-section .data=.hii --target=efi-bsdrv-$(ARCH) $< $@
- mkdir -p ../drivers
- cp $(BUILDME) ../drivers
+ mkdir -p ../drivers_$(FILENAME_CODE)
+ cp $(BUILDME) ../drivers_$(FILENAME_CODE)
endif