Don't edit the riscv subsystem if using objcopy

* Only needed in binary mode

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2024-07-16 13:25:39 +01:00
parent e092a94869
commit 06320f8fb3
No known key found for this signature in database
GPG Key ID: 9A5B19E18CD0013C
1 changed files with 2 additions and 0 deletions

View File

@ -45,8 +45,10 @@ ifeq ($(IS_MINGW32),)
-j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \
-j .areloc -j .reloc $(FORMAT) $*.so $@
ifeq ($(ARCH),riscv64)
ifeq ($(SYSTEM_HAS_EFI_OBJCOPY),0)
$(HIDE)/bin/echo -ne "$(CHAR_SUBSYSTEM)" | dd of=$@ bs=1 seek=156 count=1 conv=notrunc status=none
endif
endif
%.efi.debug: %.so
@$(ECHO) " OBJCOPY $(notdir $@)"