123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- ################################################################################
- #
- # Copyright (c) 2012 Minoca Corp.
- #
- # This file is licensed under the terms of the GNU General Public License
- # version 3. Alternative licensing terms are available. Contact
- # info@minocacorp.com for details. See the LICENSE file at the root of this
- # project for complete licensing information.
- #
- # Binary Name:
- #
- # loader (sources)
- #
- # Abstract:
- #
- # This file includes the common build arguments for the boot loaders.
- #
- # Author:
- #
- # Evan Green 29-Jul-2012
- #
- # Environment:
- #
- # Boot
- #
- ################################################################################
- BINARY ?= loader
- BINARYTYPE ?= staticapp
- BINPLACE = bin
- OBJS = loader.o \
- bootim.o \
- dbgport.o \
- X86_OBJS = x86/archsupc.o \
- x86/dbgparch.o \
- x86/entry.o \
- x86/paging.o \
- x86/kernxfr.o \
- X64_OBJS = x64/kernxfr.o \
- x64/paging.o \
- x86/archsupc.o \
- x86/dbgparch.o \
- x86/entry.o \
- ARMV7_OBJS = armv7/archsupc.o \
- armv7/dbgparch.o \
- armv7/paging.o \
- armv7/kernxfr.o \
- ARMV6_OBJS = armv6/archsupc.o \
- armv7/dbgparch.o \
- armv7/paging.o \
- armv7/kernxfr.o \
- TARGETLIBS = $(OBJROOT)/os/kernel/kd/boot/kdboot.a \
- $(OBJROOT)/os/kernel/kd/kdusb/kdusb.a \
- $(OBJROOT)/os/lib/rtl/base/boot/basertlb.a \
- $(OBJROOT)/os/lib/rtl/kmode/krtl.a \
- $(OBJROOT)/os/lib/im/native/imn.a \
- $(OBJROOT)/os/lib/fatlib/fat.a \
- $(OBJROOT)/os/lib/basevid/basevid.a \
- $(OBJROOT)/os/lib/bconflib/bconflib.a \
- $(OBJROOT)/os/kernel/hl/boot/hlboot.a \
- $(OBJROOT)/os/kernel/mm/boot/mmboot.a \
- ifneq (,$(filter armv7 armv6,$(ARCH)))
- TARGETLIBS += $(OBJROOT)/os/kernel/$(ARCH)/boot/armboot.a
- endif
- LDFLAGS += -pie -nodefaultlibs -nostartfiles -nostdlib
- EXTRA_SRC_DIRS = x86 x64 armv7 armv6
|