blob: 5dd1c2991cc1eda1f5bb1993fc54ad34e5c0dcd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# -*-makefile-*-
#
# Copyright (C) 2008 by Remy Bohmer <linux@bohmer.net>
# 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_AT91BOOTSTRAP) += at91bootstrap
#
# Paths and names
#
AT91BOOTSTRAP_VERSION := $(call remove_quotes,$(PTXCONF_AT91BOOTSTRAP_VERSION))
AT91BOOTSTRAP_MD5 := $(call remove_quotes,$(PTXCONF_AT91BOOTSTRAP_MD5))
AT91BOOTSTRAP_SUFFIX := zip
AT91BOOTSTRAP := Bootstrap-v$(AT91BOOTSTRAP_VERSION)
AT91BOOTSTRAP_TARBALL := AT91Bootstrap$(AT91BOOTSTRAP_VERSION).$(AT91BOOTSTRAP_SUFFIX)
AT91BOOTSTRAP_URL := \
http://www.atmel.com/dyn/resources/prod_documents/$(AT91BOOTSTRAP_TARBALL) \
http://sources.buildroot.net/$(AT91BOOTSTRAP_TARBALL)
AT91BOOTSTRAP_SOURCE := $(SRCDIR)/$(AT91BOOTSTRAP_TARBALL)
AT91BOOTSTRAP_DIR := $(BUILDDIR)/$(AT91BOOTSTRAP)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
AT91BOOTSTRAP_WRAPPER_BLACKLIST := \
TARGET_HARDEN_STACK \
TARGET_HARDEN_STACKCLASH \
TARGET_HARDEN_RELRO \
TARGET_HARDEN_BINDNOW \
TARGET_HARDEN_PIE \
TARGET_DEBUG \
TARGET_BUILD_ID
AT91BOOTSTRAP_BOOTMEDIA-$(PTXCONF_AT91BOOTSTRAP_BOOT_DATAFLASH) += dataflash
AT91BOOTSTRAP_BOOTMEDIA-$(PTXCONF_AT91BOOTSTRAP_BOOT_NAND) += nandflash
AT91BOOTSTRAP_BOARDDIR := \
$(AT91BOOTSTRAP_DIR)/board/${PTXCONF_AT91BOOTSTRAP_CONFIG}/$(AT91BOOTSTRAP_BOOTMEDIA-y)
AT91BOOTSTRAP_MAKE_ENV := $(CROSS_ENV)
AT91BOOTSTRAP_MAKE_PAR := NO
AT91BOOTSTRAP_MAKE_OPT := \
CROSS_COMPILE=$(COMPILER_PREFIX) \
-C $(AT91BOOTSTRAP_BOARDDIR)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/at91bootstrap.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/at91bootstrap.targetinstall:
@$(call targetinfo)
@install -m644 $(AT91BOOTSTRAP_BOARDDIR)/$(AT91BOOTSTRAP_BOOTMEDIA-y)_${PTXCONF_AT91BOOTSTRAP_CONFIG}.bin \
$(IMAGEDIR)/at91bootstrap.bin
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
$(STATEDIR)/at91bootstrap.clean:
@$(call targetinfo)
@$(call clean_pkg, AT91BOOTSTRAP)
@rm -rf $(IMAGEDIR)/at91bootstrap*
# vim: syntax=make
|