Changeset fa024ce in mainline
- Timestamp:
- 2009-02-12T20:12:08Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 98a4e76
- Parents:
- fcd7053
- Location:
- boot
- Files:
-
- 1 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
rfcd7053 rfa024ce 31 31 32 32 -include ../Makefile.config 33 -include ../config.defs 33 34 34 35 ## Paths … … 39 40 USPACEDIR = $(BASE)/uspace 40 41 41 ifeq ($(CONFIG_DEBUG),y)42 DEFS += -DCONFIG_DEBUG43 endif44 45 ifeq ($(CONFIG_BAT),y)46 DEFS += -DCONFIG_BAT47 endif48 49 ifeq ($(CONFIG_AP),y)50 DEFS += -DCONFIG_AP51 endif52 53 42 .PHONY: all build clean generic_clean 54 43 55 all: ../Makefile.config build44 all: ../Makefile.config ../config.h ../config.defs build 56 45 57 -include arch/$( ARCH)/Makefile.inc46 -include arch/$(BARCH)/Makefile.inc 58 47 59 48 generic_clean: -
boot/arch/amd64/Makefile.inc
rfcd7053 rfa024ce 58 58 build: $(BASE)/image.iso 59 59 60 $(BASE)/image.iso: arch/$( ARCH)/grub/stage2_eltorito arch/$(ARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS)61 mkdir -p arch/$( ARCH)/iso/boot/grub62 cp arch/$( ARCH)/grub/stage2_eltorito arch/$(ARCH)/iso/boot/grub/60 $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS) 61 mkdir -p arch/$(BARCH)/iso/boot/grub 62 cp arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/iso/boot/grub/ 63 63 ifneq ($(RDFMT),tmpfs) 64 cat arch/$( ARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(ARCH)/iso/boot/grub/menu.lst64 cat arch/$(BARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(BARCH)/iso/boot/grub/menu.lst 65 65 endif 66 66 ifneq ($(RDFMT),fat) 67 cat arch/$( ARCH)/grub/menu.lst | grep -v "fat" >arch/$(ARCH)/iso/boot/grub/menu.lst67 cat arch/$(BARCH)/grub/menu.lst | grep -v "fat" >arch/$(BARCH)/iso/boot/grub/menu.lst 68 68 endif 69 cp $(KERNELDIR)/kernel.bin arch/$( ARCH)/iso/boot/69 cp $(KERNELDIR)/kernel.bin arch/$(BARCH)/iso/boot/ 70 70 for task in $(INIT_TASKS) ; do \ 71 cp $$task arch/$( ARCH)/iso/boot/ ; \71 cp $$task arch/$(BARCH)/iso/boot/ ; \ 72 72 done 73 73 for file in $(RD_SRVS) ; do \ … … 78 78 done 79 79 ifeq ($(RDFMT),tmpfs) 80 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$( ARCH)/iso/boot/initrd.fs80 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs 81 81 endif 82 82 ifeq ($(RDFMT),fat) 83 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ arch/$( ARCH)/iso/boot/initrd.fs83 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs 84 84 endif 85 $(BASE)/tools/mkhord.py 4096 arch/$( ARCH)/iso/boot/initrd.fs arch/$(ARCH)/iso/boot/initrd.img86 rm arch/$( ARCH)/iso/boot/initrd.fs87 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $(BASE)/image.iso arch/$( ARCH)/iso/85 $(BASE)/tools/mkhord.py 4096 arch/$(BARCH)/iso/boot/initrd.fs arch/$(BARCH)/iso/boot/initrd.img 86 rm arch/$(BARCH)/iso/boot/initrd.fs 87 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $(BASE)/image.iso arch/$(BARCH)/iso/ 88 88 89 89 clean: … … 94 94 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 95 95 done 96 -rm -fr arch/$( ARCH)/iso96 -rm -fr arch/$(BARCH)/iso 97 97 -rm -f $(BASE)/image.iso -
boot/arch/arm32/Makefile.inc
rfcd7053 rfa024ce 29 29 build: $(BASE)/image.boot 30 30 31 $(BASE)/image.boot: depend arch/$( ARCH)/loader/image.boot32 cp arch/$( ARCH)/loader/image.boot $(BASE)/image.boot31 $(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot 32 cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot 33 33 34 34 depend: 35 -rm arch/$( ARCH)/loader/image.boot35 -rm arch/$(BARCH)/loader/image.boot 36 36 37 arch/$( ARCH)/loader/image.boot:38 make -C arch/$( ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) IMAGE=$(IMAGE)37 arch/$(BARCH)/loader/image.boot: 38 make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 39 39 40 40 clean: 41 make -C arch/$( ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) IMAGE=$(IMAGE)41 make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 42 42 -rm -f $(BASE)/image.boot -
boot/arch/arm32/loader/Makefile
rfcd7053 rfa024ce 28 28 29 29 include ../../../../version 30 include ../../../../Makefile.config30 -include ../../../../Makefile.config 31 31 32 32 ## Toolchain configuration … … 58 58 endif 59 59 60 CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../.. -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -pipe 61 62 ifdef REVISION 63 CFLAGS += "-DREVISION=\"$(REVISION)\"" 64 endif 65 66 ifdef TIMESTAMP 67 CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 68 endif 69 70 ifdef MACHINE 71 CFLAGS += "-DMACHINE=$(MACHINE)" 72 endif 60 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../.. -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -pipe 73 61 74 62 SOURCES = \ -
boot/arch/arm32/loader/main.c
rfcd7053 rfa024ce 36 36 37 37 38 #include "main.h" 38 #include "main.h" 39 39 #include "asm.h" 40 40 #include "_components.h" 41 41 #include <printf.h> 42 #include <macros.h> 42 43 43 44 #include "mm.h" … … 47 48 48 49 49 char *release = RELEASE;50 char *release = STRING(RELEASE); 50 51 51 52 #ifdef REVISION 52 char *revision = ", revision " REVISION;53 char *revision = ", revision " STRING(REVISION); 53 54 #else 54 55 char *revision = ""; … … 56 57 57 58 #ifdef TIMESTAMP 58 char *timestamp = "\nBuilt on " TIMESTAMP;59 char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 59 60 #else 60 61 char *timestamp = ""; -
boot/arch/ia32/Makefile.inc
rfcd7053 rfa024ce 57 57 build: $(BASE)/image.iso 58 58 59 $(BASE)/image.iso: arch/$( ARCH)/grub/stage2_eltorito arch/$(ARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS)60 mkdir -p arch/$( ARCH)/iso/boot/grub61 cp arch/$( ARCH)/grub/stage2_eltorito arch/$(ARCH)/iso/boot/grub/59 $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS) 60 mkdir -p arch/$(BARCH)/iso/boot/grub 61 cp arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/iso/boot/grub/ 62 62 ifneq ($(RDFMT),tmpfs) 63 cat arch/$( ARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(ARCH)/iso/boot/grub/menu.lst63 cat arch/$(BARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(BARCH)/iso/boot/grub/menu.lst 64 64 endif 65 65 ifneq ($(RDFMT),fat) 66 cat arch/$( ARCH)/grub/menu.lst | grep -v "fat" >arch/$(ARCH)/iso/boot/grub/menu.lst66 cat arch/$(BARCH)/grub/menu.lst | grep -v "fat" >arch/$(BARCH)/iso/boot/grub/menu.lst 67 67 endif 68 cp $(KERNELDIR)/kernel.bin arch/$( ARCH)/iso/boot/68 cp $(KERNELDIR)/kernel.bin arch/$(BARCH)/iso/boot/ 69 69 for task in $(INIT_TASKS) ; do \ 70 cp $$task arch/$( ARCH)/iso/boot/ ; \70 cp $$task arch/$(BARCH)/iso/boot/ ; \ 71 71 done 72 72 for file in $(RD_SRVS) ; do \ … … 77 77 done 78 78 ifeq ($(RDFMT),tmpfs) 79 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$( ARCH)/iso/boot/initrd.fs79 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs 80 80 endif 81 81 ifeq ($(RDFMT),fat) 82 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ arch/$( ARCH)/iso/boot/initrd.fs82 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs 83 83 endif 84 $(BASE)/tools/mkhord.py 4096 arch/$( ARCH)/iso/boot/initrd.fs arch/$(ARCH)/iso/boot/initrd.img85 rm arch/$( ARCH)/iso/boot/initrd.fs86 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $(BASE)/image.iso arch/$( ARCH)/iso/84 $(BASE)/tools/mkhord.py 4096 arch/$(BARCH)/iso/boot/initrd.fs arch/$(BARCH)/iso/boot/initrd.img 85 rm arch/$(BARCH)/iso/boot/initrd.fs 86 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $(BASE)/image.iso arch/$(BARCH)/iso/ 87 87 88 88 clean: … … 93 93 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 94 94 done 95 -rm -fr arch/$( ARCH)/iso95 -rm -fr arch/$(BARCH)/iso 96 96 -rm -f $(BASE)/image.iso -
boot/arch/ia64/Makefile.inc
rfcd7053 rfa024ce 27 27 # 28 28 29 #ifeq ($(MACHINE),ski)30 31 29 build: $(BASE)/image.boot 32 30 33 $(BASE)/image.boot: depend arch/$( ARCH)/loader/image.boot34 cp arch/$( ARCH)/loader/image.boot $(BASE)/image.boot31 $(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot 32 cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot 35 33 36 34 depend: 37 -rm arch/$( ARCH)/loader/image.boot35 -rm arch/$(BARCH)/loader/image.boot 38 36 39 arch/$( ARCH)/loader/image.boot:40 make -C arch/$( ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"37 arch/$(BARCH)/loader/image.boot: 38 make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 41 39 42 40 clean: generic_clean 43 make -C arch/$( ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"41 make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 44 42 -rm -f $(BASE)/image.boot 45 46 #endif47 -
boot/arch/ia64/loader/Makefile
rfcd7053 rfa024ce 28 28 29 29 include ../../../../version 30 include ../../../../Makefile.config30 -include ../../../../Makefile.config 31 31 32 32 ## Toolchain configuration … … 48 48 OBJCOPY = objcopy 49 49 OBJDUMP = objdump 50 GEFI_PRE XIX =50 GEFI_PREFIX = 51 51 endif 52 52 … … 69 69 70 70 #-mno-pic means do not use gp + imm22 to address data 71 CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -I../../../../kernel/generic/include -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -fno-unwind-tables -mfixed-range=f32-f127 -mno-pic -pipe 72 73 ifdef REVISION 74 CFLAGS += "-DREVISION=\"$(REVISION)\"" 75 endif 76 77 ifdef TIMESTAMP 78 CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 79 endif 71 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -I../../../../kernel/generic/include -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -fno-unwind-tables -mfixed-range=f32-f127 -mno-pic -pipe 80 72 81 73 SOURCES = \ … … 131 123 make -C gefi/HelenOS PREFIX=$(GEFI_PREFIX) 132 124 cp gefi/HelenOS/hello.efi ../../../../ 133 # cp gefi/HelenOS/hello.efi /boot/efi/134 125 cp gefi/HelenOS/image.bin ../../../../ 135 126 -
boot/arch/ia64/loader/gefi/Make.defaults
rfcd7053 rfa024ce 28 28 INSTALLROOT=/usr/local 29 29 30 TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)30 TOPDIR := $(shell pwd) 31 31 32 ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)33 INCDIR 32 ARCH = ia64 33 INCDIR = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol 34 34 CPPFLAGS = -DCONFIG_$(ARCH) 35 CFLAGS = -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants36 LDFLAGS 37 INSTALL 35 CFLAGS = -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -frename-registers -mfixed-range=f32-f127 36 LDFLAGS = -nostdlib 37 INSTALL = install 38 38 39 GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.') 40 41 # prefix = 42 CC = $(prefix)gcc 43 AS = $(prefix)as 44 LD = $(prefix)ld 45 AR = $(prefix)ar 46 RANLIB = $(prefix)ranlib 47 OBJCOPY = $(prefix)objcopy 48 OBJDUMP = $(prefix)objdump 49 50 51 ifneq ($(GCC_VERSION),2) 52 CFLAGS += -frename-registers 53 endif 54 55 CFLAGS += -mfixed-range=f32-f127 56 39 CC = $(prefix)gcc 40 AS = $(prefix)as 41 LD = $(prefix)ld 42 AR = $(prefix)ar 43 RANLIB = $(prefix)ranlib 44 OBJCOPY = $(prefix)objcopy 45 OBJDUMP = $(prefix)objdump -
boot/arch/ia64/loader/gefi/Makefile
rfcd7053 rfa024ce 26 26 SUBDIRS = lib gnuefi inc 27 27 28 all: check_gcc$(SUBDIRS)28 all: $(SUBDIRS) 29 29 30 30 $(SUBDIRS): … … 40 40 .PHONY: $(SUBDIRS) clean depend 41 41 42 #43 # on both platforms you must use gcc 3.0 or higher44 #45 check_gcc:46 ifeq ($(GCC_VERSION),2)47 @echo "you need to use a version of gcc >= 3.0, you are using `$(CC) --version`"48 @exit 149 endif50 51 42 include Make.rules -
boot/arch/ia64/loader/main.c
rfcd7053 rfa024ce 1 1 /* 2 2 * Copyright (c) 2005 Martin Decky 3 * Copyright (c) 2006 Jakub Jermar 3 * Copyright (c) 2006 Jakub Jermar 4 4 * All rights reserved. 5 5 * … … 34 34 #include <align.h> 35 35 #include <balloc.h> 36 #include <macros.h> 36 37 37 38 extern bootinfo_t binfo; 38 39 component_t components[COMPONENTS]; 39 40 40 char *release = RELEASE;41 char *release = STRING(RELEASE); 41 42 42 43 void write(const char *str, const int len) … … 54 55 55 56 #ifdef REVISION 56 char *revision = ", revision " REVISION;57 char *revision = ", revision " STRING(REVISION); 57 58 #else 58 59 char *revision = ""; … … 60 61 61 62 #ifdef TIMESTAMP 62 char *timestamp = "\nBuilt on " TIMESTAMP;63 char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 63 64 #else 64 65 char *timestamp = ""; -
boot/arch/mips32/Makefile.inc
rfcd7053 rfa024ce 29 29 build: $(BASE)/image.boot 30 30 31 $(BASE)/image.boot: depend arch/$( ARCH)/loader/image.boot32 cp arch/$( ARCH)/loader/image.boot $(BASE)/image.boot31 $(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot 32 cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot 33 33 34 34 depend: 35 -rm arch/$( ARCH)/loader/image.boot35 -rm arch/$(BARCH)/loader/image.boot 36 36 37 arch/$( ARCH)/loader/image.boot:38 make -C arch/$( ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) IMAGE=$(IMAGE)37 arch/$(BARCH)/loader/image.boot: 38 make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 39 39 40 40 clean: 41 make -C arch/$( ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) IMAGE=$(IMAGE)41 make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 42 42 -rm -f $(BASE)/image.boot -
boot/arch/mips32/loader/Makefile
rfcd7053 rfa024ce 28 28 29 29 include ../../../../version 30 include ../../../../Makefile.config30 -include ../../../../Makefile.config 31 31 32 32 ## Toolchain configuration … … 40 40 LD_IN = binary 41 41 endif 42 42 43 ifeq ($(IMAGE),ecoff) 43 44 LD_IN = ecoff 44 45 endif 46 45 47 BFD_NAME = elf32-tradlittlemips 46 48 BFD_ARCH = mips … … 64 66 endif 65 67 66 CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe 67 68 ifdef REVISION 69 CFLAGS += "-DREVISION=\"$(REVISION)\"" 70 endif 71 72 ifdef TIMESTAMP 73 CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 74 endif 68 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe 75 69 76 70 SOURCES = \ -
boot/arch/mips32/loader/main.c
rfcd7053 rfa024ce 29 29 #include "main.h" 30 30 #include <printf.h> 31 #include <macros.h> 31 32 #include "msim.h" 32 33 #include "asm.h" … … 35 36 #define KERNEL_VIRTUAL_ADDRESS 0x80100000 36 37 37 char *release = RELEASE;38 char *release = STRING(RELEASE); 38 39 39 40 #ifdef REVISION 40 char *revision = ", revision " REVISION;41 char *revision = ", revision " STRING(REVISION); 41 42 #else 42 43 char *revision = ""; … … 44 45 45 46 #ifdef TIMESTAMP 46 char *timestamp = "\nBuilt on " TIMESTAMP;47 char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 47 48 #else 48 49 char *timestamp = ""; -
boot/arch/ppc32/Makefile.inc
rfcd7053 rfa024ce 29 29 build: $(BASE)/image.boot 30 30 31 $(BASE)/image.boot: depend arch/$( ARCH)/loader/image.boot32 cp arch/$( ARCH)/loader/image.boot $(BASE)/image.boot31 $(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot 32 cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot 33 33 34 34 depend: 35 -rm arch/$( ARCH)/loader/image.boot35 -rm arch/$(BARCH)/loader/image.boot 36 36 37 arch/$( ARCH)/loader/image.boot:38 make -C arch/$( ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"37 arch/$(BARCH)/loader/image.boot: 38 make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 39 39 40 40 clean: generic_clean 41 make -C arch/$( ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"41 make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 42 42 -rm -f $(BASE)/image.boot -
boot/arch/ppc32/loader/Makefile
rfcd7053 rfa024ce 28 28 29 29 include ../../../../version 30 include ../../../../Makefile.config30 -include ../../../../Makefile.config 31 31 32 32 ## Toolchain configuration … … 58 58 endif 59 59 60 CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc -msoft-float -m32 -pipe 61 62 ifdef REVISION 63 CFLAGS += "-DREVISION=\"$(REVISION)\"" 64 endif 65 66 ifdef TIMESTAMP 67 CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 68 endif 60 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc -msoft-float -m32 -pipe 69 61 70 62 SOURCES = \ -
boot/arch/ppc32/loader/_link.ld.in
rfcd7053 rfa024ce 1 OUTPUT_FORMAT("elf32-powerpc") 2 OUTPUT_ARCH(powerpc:common) 3 ENTRY(start) 4 1 OUTPUT_FORMAT("elf32-powerpc") 2 OUTPUT_ARCH(powerpc:common) 3 ENTRY(start) 4 5 5 SECTIONS { 6 .boot 0x01000000: AT (0) { 6 .boot 0x01000000: AT (0) { 7 7 *(BOOTSTRAP); 8 8 *(REALMODE); … … 11 11 *(.rodata); 12 12 *(.rodata.*); 13 *(.data); 13 *(.data); /* initialized data */ 14 14 *(.sdata); 15 15 *(.sdata2); 16 16 *(.sbss); 17 *(.bss); /* uninitialized static variables */18 *(COMMON); 17 *(.bss); /* uninitialized static variables */ 18 *(COMMON); /* global variables */ 19 19 [[COMPONENTS]] 20 20 } -
boot/arch/ppc32/loader/main.c
rfcd7053 rfa024ce 33 33 #include <ofw.h> 34 34 #include <align.h> 35 #include <macros.h> 35 36 36 37 #define HEAP_GAP 1024000 … … 73 74 } 74 75 75 char *release = RELEASE;76 char *release = STRING(RELEASE); 76 77 77 78 #ifdef REVISION 78 char *revision = ", revision " REVISION;79 char *revision = ", revision " STRING(REVISION); 79 80 #else 80 81 char *revision = ""; … … 82 83 83 84 #ifdef TIMESTAMP 84 char *timestamp = "\nBuilt on " TIMESTAMP;85 char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 85 86 #else 86 87 char *timestamp = ""; -
boot/arch/sparc64/Makefile.inc
rfcd7053 rfa024ce 29 29 TMP = distroot 30 30 31 ifeq ($(CONFIG_AOUT_ISOFS_B),n)32 SILO_PACKAGE=silo.patched.tar.gz33 endif34 35 31 ifeq ($(CONFIG_AOUT_ISOFS_B),y) 36 SILO_PACKAGE=silo.tar.gz 32 SILO_PACKAGE = silo.tar.gz 33 else 34 SILO_PACKAGE = silo.patched.tar.gz 37 35 endif 38 36 39 37 build: $(BASE)/image.iso 40 38 41 ifeq ($(CONFIG_RD_EXTERNAL),y) 42 SILO_CONF_FILTER = cat 43 else 44 SILO_CONF_FILTER = grep -v initrd 45 endif 46 47 $(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot 39 $(BASE)/image.iso: depend arch/$(BARCH)/loader/image.boot 48 40 mkdir -p $(TMP)/boot 49 41 mkdir -p $(TMP)/HelenOS 50 cat arch/$(ARCH)/silo/$(SILO_PACKAGE) | (cd $(TMP)/boot; tar xvfz -) 51 cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING $(TMP)/boot 52 cat arch/$(ARCH)/silo/silo.conf | $(SILO_CONF_FILTER) >$(TMP)/boot/silo.conf 53 cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot 42 cat arch/$(BARCH)/silo/$(SILO_PACKAGE) | (cd $(TMP)/boot; tar xvfz -) 43 cp arch/$(BARCH)/silo/README arch/$(BARCH)/silo/COPYING $(TMP)/boot 44 ifeq ($(CONFIG_RD_EXTERNAL),y) 45 cp arch/$(BARCH)/silo/silo.conf $(TMP)/boot/silo.conf 46 else 47 cat arch/$(BARCH)/silo/silo.conf | grep -v initrd > $(TMP)/boot/silo.conf 48 endif 49 cp arch/$(BARCH)/loader/image.boot $(TMP)/HelenOS/image.boot 54 50 gzip -f $(TMP)/HelenOS/image.boot 55 51 ifeq ($(CONFIG_RD_EXTERNAL),y) 56 cp arch/$( ARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img52 cp arch/$(BARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img 57 53 endif 58 54 mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $(BASE)/image.iso $(TMP)/ 59 55 60 56 depend: 61 -rm arch/$( ARCH)/loader/image.boot57 -rm arch/$(BARCH)/loader/image.boot 62 58 63 arch/$( ARCH)/loader/image.boot:64 $(MAKE) -C arch/$( ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"59 arch/$(BARCH)/loader/image.boot: 60 $(MAKE) -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 65 61 66 62 clean: generic_clean 67 $(MAKE) -C arch/$( ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)63 $(MAKE) -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 68 64 -rm -fr $(TMP) 69 65 -rm -f $(BASE)/image.iso -
boot/arch/sparc64/loader/Makefile
rfcd7053 rfa024ce 28 28 29 29 include ../../../../version 30 include ../../../../Makefile.config30 -include ../../../../Makefile.config 31 31 32 32 ## Toolchain configuration … … 58 58 endif 59 59 60 CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64 -mno-fpu -pipe 61 62 ifdef REVISION 63 CFLAGS += "-DREVISION=\"$(REVISION)\"" 64 endif 65 66 ifdef TIMESTAMP 67 CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 68 endif 60 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64 -mno-fpu -pipe 69 61 70 62 SOURCES = \ -
boot/arch/sparc64/loader/main.c
rfcd7053 rfa024ce 37 37 #include "ofwarch.h" 38 38 #include <align.h> 39 #include <macros.h> 39 40 #include <string.h> 40 41 … … 43 44 component_t components[COMPONENTS]; 44 45 45 char *release = RELEASE;46 char *release = STRING(RELEASE); 46 47 47 48 #ifdef REVISION 48 char *revision = ", revision " REVISION;49 char *revision = ", revision " STRING(REVISION); 49 50 #else 50 51 char *revision = ""; … … 52 53 53 54 #ifdef TIMESTAMP 54 char *timestamp = "\nBuilt on " TIMESTAMP;55 char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 55 56 #else 56 57 char *timestamp = ""; -
boot/arch/sparc64/loader/ofwarch.c
rfcd7053 rfa024ce 33 33 */ 34 34 35 #include <ofwarch.h> 35 #include <ofwarch.h> 36 36 #include <ofw.h> 37 37 #include <printf.h>
Note:
See TracChangeset
for help on using the changeset viewer.