summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2006-11-22 16:55:17 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2006-11-22 16:55:17 +0000
commitadc3d708be6e0c5b47f65331161e555974a0a341 (patch)
tree22cd092b2f63d225cd424e74270900c04d60c002 /rules
parent79312df448d0a2dad0b594f202ef900404116444 (diff)
downloadptxdist-adc3d708be6e0c5b47f65331161e555974a0a341.tar.gz
ptxdist-adc3d708be6e0c5b47f65331161e555974a0a341.tar.xz
* genpart: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6366 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
-rw-r--r--rules/host-genpart.in7
-rw-r--r--rules/host-genpart.make106
-rw-r--r--rules/hosttools.in1
3 files changed, 114 insertions, 0 deletions
diff --git a/rules/host-genpart.in b/rules/host-genpart.in
new file mode 100644
index 000000000..3c9e225b2
--- /dev/null
+++ b/rules/host-genpart.in
@@ -0,0 +1,7 @@
+config HOST_GENPART
+ bool
+ prompt "genpart"
+ help
+ Tool to generate a 16 byte partition table entry defined by
+ command line arguments and dump it to stdout. No CHS magic is
+ done, only lba entries are filled out.
diff --git a/rules/host-genpart.make b/rules/host-genpart.make
new file mode 100644
index 000000000..485f94f96
--- /dev/null
+++ b/rules/host-genpart.make
@@ -0,0 +1,106 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2006 by Robert Schwebel
+#
+# 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_GENPART) += host-genpart
+
+#
+# Paths and names
+#
+HOST_GENPART_VERSION := 1.0.0
+HOST_GENPART := genpart-$(HOST_GENPART_VERSION)
+HOST_GENPART_SUFFIX := tar.bz2
+HOST_GENPART_URL := http://www.pengutronix.de/software/genpart/download//$(HOST_GENPART).$(HOST_GENPART_SUFFIX)
+HOST_GENPART_SOURCE := $(SRCDIR)/$(HOST_GENPART).$(HOST_GENPART_SUFFIX)
+HOST_GENPART_DIR := $(HOST_BUILDDIR)/$(HOST_GENPART)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+host-genpart_get: $(STATEDIR)/host-genpart.get
+
+$(STATEDIR)/host-genpart.get: $(host-genpart_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(HOST_GENPART_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, HOST_GENPART)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+host-genpart_extract: $(STATEDIR)/host-genpart.extract
+
+$(STATEDIR)/host-genpart.extract: $(host-genpart_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_GENPART_DIR))
+ @$(call extract, HOST_GENPART, $(HOST_BUILDDIR))
+ @$(call patchin, HOST_GENPART, $(HOST_GENPART_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+host-genpart_prepare: $(STATEDIR)/host-genpart.prepare
+
+HOST_GENPART_PATH := PATH=$(HOST_PATH)
+HOST_GENPART_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_GENPART_AUTOCONF := $(HOST_AUTOCONF)
+
+$(STATEDIR)/host-genpart.prepare: $(host-genpart_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_GENPART_DIR)/config.cache)
+ cd $(HOST_GENPART_DIR) && \
+ $(HOST_GENPART_PATH) $(HOST_GENPART_ENV) \
+ ./configure $(HOST_GENPART_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+host-genpart_compile: $(STATEDIR)/host-genpart.compile
+
+$(STATEDIR)/host-genpart.compile: $(host-genpart_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(HOST_GENPART_DIR) && $(HOST_GENPART_PATH) $(MAKE)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+host-genpart_install: $(STATEDIR)/host-genpart.install
+
+$(STATEDIR)/host-genpart.install: $(host-genpart_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, HOST_GENPART,,h)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-genpart_clean:
+ rm -rf $(STATEDIR)/host-genpart.*
+ rm -rf $(HOST_GENPART_DIR)
+
+# vim: syntax=make
diff --git a/rules/hosttools.in b/rules/hosttools.in
index 77952d0c7..92902bcdf 100644
--- a/rules/hosttools.in
+++ b/rules/hosttools.in
@@ -3,6 +3,7 @@ comment "Filesystem Manipulation Tools "
comment "------------------------------"
source "rules/host-genext2fs.in"
+source "rules/host-genpart.in"
source "rules/host-e2fsprogs.in"
source "rules/host-mtd.in"