From 8e78685eed20c4bc34e6a22ac8e6548c9305411a Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Thu, 23 Jun 2005 05:07:39 +0000 Subject: Setup needed files for Xbox boot in /export --- Makefile | 1 + make_boot_img | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/Makefile b/Makefile index 1885a64dc..c243ba874 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ install_only: ifeq (i386,$(ARCH)) rm -rf $(ROOTDEST)/isolinux + [ -d isolinux/xbox ] && mv -f isolinux/xbox/{linuxboot.cfg,default.xbe} $(ROOTDEST) cp -af isolinux $(ROOTDEST) endif diff --git a/make_boot_img b/make_boot_img index a1e46bbf7..470b9dd60 100755 --- a/make_boot_img +++ b/make_boot_img @@ -744,6 +744,32 @@ sub isolinux { _ "cp /usr/lib/syslinux/isolinux.bin isolinux/isolinux.bin"; output("isolinux/isolinux.cfg", syslinux_cfg_all('cdrom')); + + xbox_stage1() if arch() =~ /i.86/; +} + +sub xbox_stage1() { + my $dir = 'isolinux/xbox'; + + eval { rm_rf($dir) }; mkdir_p($dir); + + my $xbox_kernel = find { /xbox/ } all('kernel/all.kernels') or return; + + _ "cp kernel/all.kernels/$xbox_kernel/vmlinuz $dir"; + initrd($tmp_mnt_initrd, 'all', '', "images/all.rdz-$xbox_kernel"); + rename("images/all.rdz-$xbox_kernel", "$dir/initrd"); + + _ "cp /usr/share/cromwell/xromwell-installer.xbe $dir/default.xbe"; + output("$dir/linuxboot.cfg", <