blob: 5402c4b94da8b1d3045d6ab97cca67746dcd00a2 (
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
|
# -*-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)
AT91BOOTSTRAP_SOURCE := $(SRCDIR)/$(AT91BOOTSTRAP_TARBALL)
AT91BOOTSTRAP_DIR := $(BUILDDIR)/$(AT91BOOTSTRAP)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
AT91BOOTSTRAP_ENV := CROSS_COMPILE=$(COMPILER_PREFIX)
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)
$(STATEDIR)/at91bootstrap.compile:
@$(call targetinfo)
@cd $(AT91BOOTSTRAP_BOARDDIR) && \
$(AT91BOOTSTRAP_PATH) $(AT91BOOTSTRAP_ENV) \
$(MAKE) $(PARALLELMFLAGS_BROKEN)
@$(call touch)
# ----------------------------------------------------------------------------
# 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
|