- move prg ldscript where it belongs.
- added rule for boot .prg, no need to do it by hand :) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26099 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -59,6 +59,46 @@ KernelMergeObject boot_platform_atari_m68k.o :
|
|||||||
boot_platform_atari_m68k_other.o
|
boot_platform_atari_m68k_other.o
|
||||||
;
|
;
|
||||||
|
|
||||||
|
# AUTO folder PRG target
|
||||||
|
|
||||||
|
# based on KernelLd
|
||||||
|
rule AtariBootPrgLd
|
||||||
|
{
|
||||||
|
# AtariBootPrgLd <name> : <objs> : <linkerscript> : <args> ;
|
||||||
|
|
||||||
|
LINK on $(1) = $(TARGET_LD) ;
|
||||||
|
|
||||||
|
LINKFLAGS on $(1) = $(4) ;
|
||||||
|
if $(3) { LINKFLAGS on $(1) += --script=$(3) ; }
|
||||||
|
|
||||||
|
# Remove any preset LINKLIBS
|
||||||
|
LINKLIBS on $(1) = ;
|
||||||
|
|
||||||
|
# TODO: Do we really want to invoke SetupKernel here? The objects should
|
||||||
|
# have been compiled with KernelObjects anyway, so we're doing that twice.
|
||||||
|
SetupKernel $(2) ;
|
||||||
|
|
||||||
|
# Show that we depend on the libraries we need
|
||||||
|
LocalClean clean : $(1) ;
|
||||||
|
LocalDepends all : $(1) ;
|
||||||
|
Depends $(1) : $(2) ;
|
||||||
|
|
||||||
|
MakeLocateDebug $(1) ;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
actions AtariBootPrgLd
|
||||||
|
{
|
||||||
|
$(LINK) $(LINKFLAGS) -o "$(1)" "$(2)" $(LINKLIBS) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
AtariBootPrgLd haiku.prg :
|
||||||
|
boot_loader_$(TARGET_BOOT_PLATFORM)
|
||||||
|
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/boot_prg_$(TARGET_BOOT_PLATFORM).ld
|
||||||
|
: -Bstatic
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
SEARCH on [ FGristFiles text_menu.cpp ]
|
SEARCH on [ FGristFiles text_menu.cpp ]
|
||||||
= [ FDirName $(HAIKU_TOP) src system boot platform generic ] ;
|
= [ FDirName $(HAIKU_TOP) src system boot platform generic ] ;
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
* dd if=generated/objects/haiku/m68k/release/system/boot/zbeos of=~/floppy.img bs=512 count=20 conv=notrunc
|
* dd if=generated/objects/haiku/m68k/release/system/boot/zbeos of=~/floppy.img bs=512 count=20 conv=notrunc
|
||||||
* src/system/boot/platform/atari_m68k/fixup_tos_floppy_chksum ~/floppy.img
|
* src/system/boot/platform/atari_m68k/fixup_tos_floppy_chksum ~/floppy.img
|
||||||
* generate .prg:
|
* generate .prg:
|
||||||
* generated.m68k/cross-tools/bin/m68k-unknown-haiku-ld -o haiku.prg -T src/system/boot/platform/atari_m68k/prg.ld generated/objects/haiku/m68k/release/system/boot/boot_loader_atari_m68k
|
* generated.m68k/cross-tools/bin/m68k-unknown-haiku-ld -o haiku.prg -T src/system/ldscripts/m68k/boot_prg_atari_m68k.ld generated/objects/haiku/m68k/release/system/boot/boot_loader_atari_m68k
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "atari_memory_map.h"
|
#include "atari_memory_map.h"
|
||||||
@@ -248,7 +248,7 @@ nextsect:
|
|||||||
copysect_loop:
|
copysect_loop:
|
||||||
move.l (%a0)+,(%a1)+
|
move.l (%a0)+,(%a1)+
|
||||||
dbf %d1,copysect_loop
|
dbf %d1,copysect_loop
|
||||||
bsr putx
|
//bsr putx
|
||||||
dbf %d0,nextsect
|
dbf %d0,nextsect
|
||||||
|
|
||||||
lea msg_j1,%a0
|
lea msg_j1,%a0
|
||||||
|
|||||||
Reference in New Issue
Block a user