summaryrefslogtreecommitdiffstats
path: root/rules/dtc.make
diff options
context:
space:
mode:
authorCarsten Schlote <c.schlote@konzeptpark.de>2010-02-24 19:42:57 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-02-26 02:19:14 +0100
commit8ee7d4163e7adf204428b96f3a5a305c03dd6f03 (patch)
tree7f01026a7a40f86f982093f1d8824eb79376bf93 /rules/dtc.make
parent422c296dfd46746a2ca0e639694decae07abd827 (diff)
downloadptxdist-8ee7d4163e7adf204428b96f3a5a305c03dd6f03.tar.gz
ptxdist-8ee7d4163e7adf204428b96f3a5a305c03dd6f03.tar.xz
[dtc] Added option to install oftree into /boot
Added option to create an ipkg file, which installs the oftree file from $(IMGDIR)/oftree to /boot/oftree Useful when booting from CF or other large media with OF machines. The oftree image can now be updated with ipkg update. Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de> [mkl: moved VERSION definition a few lines] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/dtc.make')
-rw-r--r--rules/dtc.make19
1 files changed, 19 insertions, 0 deletions
diff --git a/rules/dtc.make b/rules/dtc.make
index 1dd162116..3e01f6275 100644
--- a/rules/dtc.make
+++ b/rules/dtc.make
@@ -1,6 +1,7 @@
# -*-makefile-*-
#
# Copyright (C) 2007 by Sascha Hauer
+# (C) 2010 by Carsten Schlote
#
# See CREDITS for details about who has contributed to this project.
#
@@ -13,6 +14,8 @@
#
PACKAGES-$(PTXCONF_DTC) += dtc
+DTC_VERSION := 1.0.0
+
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
@@ -63,6 +66,22 @@ $(STATEDIR)/dtc.targetinstall:
$(call remove_quotes,$(PTXCONF_DTC_EXTRA_ARGS)) \
-I dts -O dtb -o $(IMAGEDIR)/oftree \
$(PTXCONF_DTC_OFTREE_DTS)
+
+ifdef PTXCONF_DTC_INSTALL_OFTREE
+ @$(call install_init, dtc)
+ @$(call install_fixup, dtc, PACKAGE, dtc)
+ @$(call install_fixup, dtc, PRIORITY,optional)
+ @$(call install_fixup, dtc, VERSION,$(DTC_VERSION))
+ @$(call install_fixup, dtc, SECTION,base)
+ @$(call install_fixup, dtc, AUTHOR,"Carsten Schlote <c.schlote@konzeptpark.de>")
+ @$(call install_fixup, dtc, DEPENDS,)
+ @$(call install_fixup, dtc, DESCRIPTION, "oftree description for machine $(PTXCONF_PROJECT_VERSION)")
+
+ @$(call install_copy, dtc, 0, 0, 0755, /boot);
+ @$(call install_copy, dtc, 0, 0, 0644, $(IMAGEDIR)/oftree, /boot/oftree);
+
+ @$(call install_finish, dtc)
+endif
@$(call touch)
# vim: syntax=make