Skip to contentSkip to conversation

Stubdom build fix

PATCH Applied Wei Liu 3 participants 7 messages Mar 10, 2015 – Mar 11, 2015 Kbuild

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

Hi all

Songtao Liu reported some issues with stubdom.

This patch series tights up those loose ends that caused the problem he saw [0].

I've tested this series myself, but it would be good if Songtao can also give it a try and confirm it fixes those issues.

Note that the patch marked with mini-os should be applied to mini-os tree, while the patch marked with stubdom should be applied to Xen tree.

Wei.

[0] <582FB90AB890394081254B69739046FC0EBAC293@SHSMSX101.ccr.corp.intel.com>

author
#1 lore raw

PATCH 1/1 mini-os: replace XEN_TARGET_ARCH with MINIOS_TARGET_ARCH

One place was missed when I did the replacement in 55f7cd7427 ("Mini-OS:
standalone build").

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index f16520e..862f766 100644
@@ -165,7 +165,7 @@ OBJS := $(filter-out $(OBJ_DIR)/lwip%.o $(LWO), $(OBJS))
 
 ifeq ($(libc),y)
 ifeq ($(CONFIG_XC),y)
-APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc-$(XEN_TARGET_ARCH) -whole-archive -lxenguest -lxenctrl -no-whole-archive
+APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc-$(MINIOS_TARGET_ARCH) -whole-archive -lxenguest -lxenctrl -no-whole-archive
 endif
 APP_LDLIBS += -lpci
 APP_LDLIBS += -lz
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 1/1 stubdom: export XEN_ROOT in makefile

... because XEN_ROOT is used in mini-os's Config.mk.

---
 stubdom/Makefile | 1 +
 1 file changed, 1 insertion(+)
stubdom/Makefile +1 -0
index f339b20..d9e7e40 100644
@@ -1,6 +1,7 @@
 XEN_ROOT = $(CURDIR)/..
 MINI_OS = $(XEN_ROOT)/extras/mini-os
 
+export XEN_ROOT
 export XEN_OS=MiniOS
 
 export stubdom=y
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#3 lore raw

Re: [PATCH] stubdom: export XEN_ROOT in makefile

Quoted 3 lines · Wei Liu, le Tue 10 Mar 2015 13:14:39 +0000, a écrit :

... because XEN_ROOT is used in mini-os's Config.mk.

Quoted 19 lines
---
 stubdom/Makefile | 1 +
 1 file changed, 1 insertion(+)
stubdom/Makefile +1 -0
index f339b20..d9e7e40 100644
@@ -1,6 +1,7 @@
 XEN_ROOT = $(CURDIR)/..
 MINI_OS = $(XEN_ROOT)/extras/mini-os
 
+export XEN_ROOT
 export XEN_OS=MiniOS
 
 export stubdom=y
Signature · 1 line
1.9.1
Signature · 7 lines
Samuel
/*
 * Oops. The kernel tried to access some bad page. We'll have to
 * terminate things with extreme prejudice.
*/
die_if_kernel("Oops", regs, error_code);
(From linux/arch/i386/mm/fault.c)				   
Acked-by on v1 1/1
#5 lore raw

Re: [PATCH] mini-os: replace XEN_TARGET_ARCH with MINIOS_TARGET_ARCH

In reply to Wei Liu
Quoted 4 lines · Wei Liu, le Tue 10 Mar 2015 13:14:38 +0000, a écrit :

One place was missed when I did the replacement in 55f7cd7427 ("Mini-OS:
standalone build").

Quoted 20 lines
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index f16520e..862f766 100644
@@ -165,7 +165,7 @@ OBJS := $(filter-out $(OBJ_DIR)/lwip%.o $(LWO), $(OBJS))
 
 ifeq ($(libc),y)
 ifeq ($(CONFIG_XC),y)
-APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc-$(XEN_TARGET_ARCH) -whole-archive -lxenguest -lxenctrl -no-whole-archive
+APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libxc-$(MINIOS_TARGET_ARCH) -whole-archive -lxenguest -lxenctrl -no-whole-archive
 endif
 APP_LDLIBS += -lpci
 APP_LDLIBS += -lz
Signature · 1 line
1.9.1
Signature · 5 lines
Samuel
 Profitant de cette occasion, vous serait-il possible de rebooter 
 aussi Modérator et son petit copain qui gère les ressources de 
 download ?
 -+- OB in NPC : Apprendre à flasher son personnel -+-
Applied
#6 lore raw

Re: [PATCH] mini-os: replace XEN_TARGET_ARCH with MINIOS_TARGET_ARCH

Quoted 7 lines · Samuel Thibault
Quoted 4 lines · Wei Liu, le Tue 10 Mar 2015 13:14:38 +0000, a écrit :

One place was missed when I did the replacement in 55f7cd7427 ("Mini-OS:
standalone build").

Applied, along with the following to xen.git (also picks up "mini-os:
sort objects in binary archives" from Olaf).

commit 00f1fc5fd2bb9c7cf7f0e8a841ee741e547a4145

Author: Ian Campbell <[email protected]>
Date:   Wed Mar 11 10:47:33 2015 +0000

MINIOS_UPSTREAM_REVISION Update

Config.mk +3 -3
index c0c0775..f457b5d 100644
@@ -255,9 +255,9 @@ MINIOS_UPSTREAM_URL ?= git://xenbits.xen.org/mini-os.git
 endif
 OVMF_UPSTREAM_REVISION ?= a065efc7c7ce8bb3e5cb3e463099d023d4a92927
 QEMU_UPSTREAM_REVISION ?= master
-MINIOS_UPSTREAM_REVISION ?= 55f7cd7427ef3e7fe3563a3da46d8664a2ed0d6d
-# Thu Jan 29 19:10:04 2015 +0000
-# Mini-OS: standalone build
+MINIOS_UPSTREAM_REVISION ?= d0b7f0f62fd0e1154d29849b9f2e6de3783742ce
+# Tue Mar 10 13:14:38 2015 +0000
+# mini-os: replace XEN_TARGET_ARCH with MINIOS_TARGET_ARCH
 
 SEABIOS_UPSTREAM_REVISION ?= rel-1.8.0
 # Wed Feb 18 12:49:59 2015 -0500

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