source: mainline/boot/Makefile.build@ 8684e34

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

arm32/integratorcp

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[4872160]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
[4761f54]29.PHONY: all clean depend
[4872160]30
31include Makefile.common
32
[dcc2c5d]33ifeq ($(CONFIG_COMPRESSED_INIT),y)
34 COMPONENTS := $(addsuffix .gz, $(COMPONENTS))
35endif
36
[32355bc]37all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(BOOT_OUTPUT)
[4872160]38
39clean:
[0798689]40 rm -f $(RAW) $(MAP)
[4872160]41
[4761f54]42-include $(DEPENDS)
[4872160]43
[0798689]44depend: $(PRE_DEPEND)
[4872160]45
[98975a8]46../image.boot: ../build/dist/boot/image.boot
47 cp $< $@
48
[63a045c]49%.gz: %
[3bf8a75]50 gzip -n -k -9 -f $<
[4646710]51
[63a045c]52$(COMPS).o: $(COMPS).tar
53 # Create empty object file.
54 $(CC) -x c -c -o $@.new $(DEFS) $(CFLAGS) - </dev/null
55 # Add .payload section to it.
56 $(OBJCOPY) --add-section '.payload'=$< $@.new $@
[4646710]57
[239e32b8]58include Makefile.initrd
Note: See TracBrowser for help on using the repository browser.