summaryrefslogtreecommitdiffstats
path: root/rules/x-load.make
diff options
context:
space:
mode:
authorStephan Linz <linz@li-pro.net>2010-08-05 21:06:46 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-08-06 08:51:26 +0200
commit7944acdb4469dcffc695ce4a87168e53a0ff6410 (patch)
tree58421d8c2ef8d3f83da0c6109f50b6030bd09b48 /rules/x-load.make
parent4bce2e527d1d8fa283d9f80d6c3178cc986bf284 (diff)
downloadptxdist-7944acdb4469dcffc695ce4a87168e53a0ff6410.tar.gz
ptxdist-7944acdb4469dcffc695ce4a87168e53a0ff6410.tar.xz
[ptxdist] add new packet x-load
x-load is a first level bootloader for Texas Intruments OMAP microprocessors (similar to the AT91Bootstrap application). This bootstrap package is required on TI OMAP boards where dataflash/nandflash or USB/RS232 is used to boot from. In any of these cases the internal bootROM of the OMAP core is used to boot the board with. Signed-off-by: Stephan Linz <linz@li-pro.net> [mkl: removed trailing newline] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/x-load.make')
-rw-r--r--rules/x-load.make85
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/x-load.make b/rules/x-load.make
new file mode 100644
index 000000000..23a7fe093
--- /dev/null
+++ b/rules/x-load.make
@@ -0,0 +1,85 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Stephan Linz
+#
+# 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_X_LOAD) += x-load
+
+#
+# Paths and names
+#
+X_LOAD_VERSION := $(call remove_quotes,$(PTXCONF_X_LOAD_VERSION))
+X_LOAD := x-load-$(X_LOAD_VERSION)
+X_LOAD_SUFFIX := tar.bz2
+X_LOAD_URL := http://www.ptxdist.org/software/ptxdist/temporary-src/$(X_LOAD).$(X_LOAD_SUFFIX)
+X_LOAD_SOURCE := $(SRCDIR)/$(X_LOAD).$(X_LOAD_SUFFIX)
+X_LOAD_DIR := $(BUILDDIR)/$(X_LOAD)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+X_LOAD_MAKE_OPT := CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC)
+X_LOAD_MAKE_PAR := NO
+
+$(STATEDIR)/x-load.prepare:
+ @$(call targetinfo)
+ @$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG))
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+X_LOAD_BUILD_TARGETS := all
+
+ifdef PTXCONF_X_LOAD_MAKE_IFT
+X_LOAD_BUILD_TARGETS += ift
+endif
+
+$(STATEDIR)/x-load.compile:
+ @$(call targetinfo)
+ifneq ($(strip $(X_LOAD_BUILD_TARGETS)), )
+ @$(call compile, X_LOAD, $(X_LOAD_BUILD_TARGETS))
+endif
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/x-load.install:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/x-load.targetinstall:
+ @$(call targetinfo)
+ @install -D -m644 $(X_LOAD_DIR)/x-load.bin $(IMAGEDIR)/x-load.bin
+ifdef PTXCONF_X_LOAD_MAKE_IFT
+ @install -D -m644 $(X_LOAD_DIR)/x-load.bin.ift $(IMAGEDIR)/x-load.bin.ift
+ @install -D -m644 $(X_LOAD_DIR)/x-load.bin.ift $(IMAGEDIR)/MLO
+endif
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/x-load.clean:
+ @$(call targetinfo)
+ @$(call clean_pkg, X_LOAD)
+ @rm -f $(IMAGEDIR)/x-load.bin $(IMAGEDIR)/x-load.bin.ift $(IMAGEDIR)/MLO
+
+# vim: syntax=make