source: mainline/boot/Makefile.common@ 643640a

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 643640a was 7b1ae09, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 6 years ago

cleanup

  • Property mode set to 100644
File size: 2.8 KB
Line 
1#
2# Copyright (c) 2006 Martin Decky
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# - Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14# - The name of the author may not be used to endorse or promote products
15# derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28
29## Configuration
30#
31
32ROOT_PATH = ..
33
34VERSION_DEF = $(ROOT_PATH)/version
35
36COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
37
38CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
39CONFIG_HEADER = $(ROOT_PATH)/config.h
40
41-include $(VERSION_DEF)
42-include $(COMMON_MAKEFILE)
43-include $(CONFIG_MAKEFILE)
44
45USPACE_PATH = $(ROOT_PATH)/uspace
46DIST_PATH = $(BUILD_DIR)/dist
47DIST_OVERLAY_PATH = $(USPACE_PATH)/overlay
48TOOLS_PATH = $(ROOT_PATH)/tools
49DRVS_PATH = drv
50
51MKARRAY = $(TOOLS_PATH)/mkarray.py
52MKFAT = $(TOOLS_PATH)/mkfat.py
53MKEXT4 = $(TOOLS_PATH)/mkext4.py
54MKUIMAGE = $(TOOLS_PATH)/mkuimage.py
55
56ifeq ($(PRECHECK),y)
57 JOBFILE = $(TOOLS_PATH)/jobfile.py
58 # NOTE: You must not change the order of arguments.
59 CC_JOB = $(JOBFILE) $(JOB) $(CC) $< -o $@
60else
61 CC_JOB = $(CC) $< -o $@
62endif
63
64DISTROOT = distroot
65INITRD = initrd
66
67INIT_TASKS = \
68 srv/ns \
69 srv/loader \
70 app/init \
71 srv/locsrv \
72 srv/bd/rd \
73 srv/vfs \
74 srv/logger
75
76ifeq ($(RDFMT),tmpfs)
77 INIT_TASKS += srv/fs/tmpfs
78endif
79
80ifeq ($(RDFMT),fat)
81 INIT_TASKS += srv/fs/fat
82endif
83
84ifeq ($(RDFMT),ext4fs)
85 INIT_TASKS += srv/fs/ext4fs
86endif
87
88COMPONENTS = \
89 $(DIST_PATH)/boot/kernel.elf \
90 $(addprefix $(DIST_PATH)/,$(INIT_TASKS)) \
91 $(INITRD).img
92
93
94LINK = arch/$(BARCH)/_link.ld
95COMP = component
96COMPS = $(COMP)s
97
98-include arch/$(BARCH)/Makefile.inc
99
100MODULES := $(notdir $(COMPONENTS))
101
102BOOT_OUTPUT ?= $(ROOT_PATH)/image.boot
103RAW ?= image.raw
104JOB ?= image.job
105MAP ?= image.map
106BUILD ?= Makefile.build
Note: See TracBrowser for help on using the repository browser.