diff --git a/src/system/boot/Jamfile b/src/system/boot/Jamfile index 9a5805b3e4..4ed347f77d 100644 --- a/src/system/boot/Jamfile +++ b/src/system/boot/Jamfile @@ -69,6 +69,9 @@ actions BuildZbeos { BuildZbeos zbeos : boot_loader_$(TARGET_BOOT_PLATFORM) ; +# different target for PXE, to be build with TARGET_BOOT_PLATFORM=pxe_ia32 jam pxehaiku-loader +BuildZbeos pxehaiku-loader : boot_loader_$(TARGET_BOOT_PLATFORM) ; + SubInclude HAIKU_TOP src system boot arch $(TARGET_ARCH) ; SubInclude HAIKU_TOP src system boot loader ; SubInclude HAIKU_TOP src system boot platform ; diff --git a/src/system/boot/platform/pxe_ia32/Jamfile b/src/system/boot/platform/pxe_ia32/Jamfile index b68e79d608..2f936639c8 100644 --- a/src/system/boot/platform/pxe_ia32/Jamfile +++ b/src/system/boot/platform/pxe_ia32/Jamfile @@ -70,7 +70,7 @@ actions BuildPXEstage1 { ld --oformat binary --Ttext 0x7C00 -o $(1) $(1).o } -BuildPXEstage1 pxe_stage1.bin : pxe_stage1.S ; +BuildPXEstage1 pxehaiku : pxe_stage1.S ; SEARCH on [ FGristFiles $(bios_ia32_src) ] = [ FDirName $(SUBDIR) $(DOTDOT) bios_ia32 ] ; @@ -85,7 +85,4 @@ SEARCH on [ FGristFiles $(bios_ia32_edid_src) ] SEARCH on stage1.bin = [ FDirName $(SUBDIR) $(DOTDOT) bios_ia32 ] ; -# Tell the build system to where stage1.bin can be found, so it can be used -# elsewhere. -# SEARCH on pxe_stage1.bin = $(SUBDIR) ; - +SEARCH on pxe_stage1.S = $(SUBDIR) ; diff --git a/src/system/boot/platform/pxe_ia32/pxe_stage1.S b/src/system/boot/platform/pxe_ia32/pxe_stage1.S index 2c6509db5c..cc94e51168 100644 --- a/src/system/boot/platform/pxe_ia32/pxe_stage1.S +++ b/src/system/boot/platform/pxe_ia32/pxe_stage1.S @@ -467,7 +467,7 @@ go_unreal: pushw %ds ret -startmsg: .asciz "\r\nHaiku PXE bootloader version 0.1\r\n\r\n" +startmsg: .asciz "\r\nHaiku PXE bootloader version 1.0\r\n\r\n" unrealmsg: .asciz "Switch to unreal mode done\r\n" pxenvmsg: .asciz "PXENV+ data structure at " @@ -485,10 +485,10 @@ fsizeis: .asciz "Image file size is " psizeis: .asciz "Packet size is " maxfsize: .asciz "Maximum TFTP file size is " maxs2size: .asciz "Maximum stage 2 file size is " -etoobig: .asciz "haiku-pxe-loader file is too large, loading aborted\r\n" -sizefailed: .asciz "\r\nCouldn't get haiku-pxe-loader file size, loading failed\r\n" -loadfailed: .asciz "\r\nLoading haiku-pxe-loader (stage 2) failed\r\n" -executing: .asciz "\r\nExecuting haiku-pxe-loader (stage 2)\r\n" +etoobig: .asciz "pxehaiku-loader file is too large, loading aborted\r\n" +sizefailed: .asciz "\r\nCouldn't get pxehaiku-loader file size, loading failed\r\n" +loadfailed: .asciz "\r\nLoading pxehaiku-loader (stage 2) failed\r\n" +executing: .asciz "\r\nExecuting pxehaiku-loader (stage 2)\r\n" colon: .asciz ":" dot: .asciz "." crlf: .asciz "\r\n" @@ -561,8 +561,8 @@ s_PXENV_TFTP_OPEN: s_PXENV_TFTP_OPEN_Status: .word 0 s_PXENV_TFTP_OPEN_ServerIPAddress: .long 0 s_PXENV_TFTP_OPEN_GatewayIPAddress: .long 0 -s_PXENV_TFTP_OPEN_FileName: .asciz "haiku-pxe-loader" - .fill 111 +s_PXENV_TFTP_OPEN_FileName: .asciz "pxehaiku-loader" + .fill 112 s_PXENV_TFTP_OPEN_TFTPPort: .word (69 << 8) s_PXENV_TFTP_OPEN_PacketSize: .word 1456 @@ -570,8 +570,8 @@ s_PXENV_TFTP_GET_FSIZE: s_PXENV_TFTP_GET_FSIZE_Status: .word 0 s_PXENV_TFTP_GET_FSIZE_ServerIPAddress: .long 0 s_PXENV_TFTP_GET_FSIZE_GatewayIPAddress:.long 0 -s_PXENV_TFTP_GET_FSIZE_FileName: .asciz "haiku-pxe-loader" - .fill 111 +s_PXENV_TFTP_GET_FSIZE_FileName: .asciz "pxehaiku-loader" + .fill 112 s_PXENV_TFTP_GET_FSIZE_FileSize: .long 0 s_PXENV_TFTP_READ: