Skip to contentSkip to conversation

xen/arm: Remove the makefile target xen.axf

PATCH In review Julien Grall 2 participants 2 messages Feb 3, 2017 – Feb 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Remove the makefile target xen.axf

Since commit 4557c22 "xen: arm: rewrite start of day page table and cpu bring up", Xen requires to be launched in NS HYP/EL2.

xen.axf is generated in order to directly boot Xen on ARM models (e.g Foundation). However they usually start in secure mode, which mean Xen cannot boot.

The way forward to boot Xen on models is using either EFI or bootwrapper [1].

[1] https://git.kernel.org/cgit/linux/kernel/git/mark/boot-wrapper-aarch64.git/

---
 xen/arch/arm/Makefile | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
xen/arch/arm/Makefile +1 -8
index 7afb8a3..91cb3f3 100644
@@ -70,18 +70,12 @@ else
 all_symbols =
 endif
 
-$(TARGET): $(TARGET)-syms $(TARGET).axf
+$(TARGET): $(TARGET)-syms
 	$(OBJCOPY) -O binary -S $< $@
 ifeq ($(CONFIG_ARM_64),y)
 	ln -sf $(notdir $@)  ../../$(notdir $@).efi
 endif
 
-$(TARGET).axf: $(TARGET)-syms
-	# XXX: VE model loads by VMA so instead of
-	# making a proper ELF we link with LMA == VMA and adjust crudely
-	$(OBJCOPY) --change-addresses +0x80000000 $< $@
-	$(STRIP) $@
-
 ifeq ($(CONFIG_LTO),y)
 # Gather all LTO objects together
 prelink_lto.o: $(ALL_OBJS)
@@ -130,5 +124,4 @@ dtb.o: $(CONFIG_DTB_FILE)
 clean::
 	rm -f asm-offsets.s xen.lds
 	rm -f $(BASEDIR)/.xen-syms.[0-9]*
-	rm -f $(TARGET).axf
 	rm -f $(TARGET).efi
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Julien Grall

Since commit 4557c22 "xen: arm: rewrite start of day page table and cpu bring up", Xen requires to be launched in NS HYP/EL2.

xen.axf is generated in order to directly boot Xen on ARM models (e.g Foundation). However they usually start in secure mode, which mean Xen cannot boot.

Quoted 6 lines

The way forward to boot Xen on models is using either EFI or bootwrapper [1].

[1] https://git.kernel.org/cgit/linux/kernel/git/mark/boot-wrapper-aarch64.git/

Quoted 37 lines
---
 xen/arch/arm/Makefile | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
xen/arch/arm/Makefile +1 -8
index 7afb8a3..91cb3f3 100644
@@ -70,18 +70,12 @@ else
 all_symbols =
 endif
 
-$(TARGET): $(TARGET)-syms $(TARGET).axf
+$(TARGET): $(TARGET)-syms
 	$(OBJCOPY) -O binary -S $< $@
 ifeq ($(CONFIG_ARM_64),y)
 	ln -sf $(notdir $@)  ../../$(notdir $@).efi
 endif
 
-$(TARGET).axf: $(TARGET)-syms
-	# XXX: VE model loads by VMA so instead of
-	# making a proper ELF we link with LMA == VMA and adjust crudely
-	$(OBJCOPY) --change-addresses +0x80000000 $< $@
-	$(STRIP) $@
-
 ifeq ($(CONFIG_LTO),y)
 # Gather all LTO objects together
 prelink_lto.o: $(ALL_OBJS)
@@ -130,5 +124,4 @@ dtb.o: $(CONFIG_DTB_FILE)
 clean::
 	rm -f asm-offsets.s xen.lds
 	rm -f $(BASEDIR)/.xen-syms.[0-9]*
-	rm -f $(TARGET).axf
 	rm -f $(TARGET).efi
Signature · 1 line
1.9.1

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel