summaryrefslogtreecommitdiffstats
path: root/rules/util-linux.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2004-07-16 09:13:48 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2004-07-16 09:13:48 +0000
commitd192dcdbfe013c29eacefb28606d20cef50d467b (patch)
treefbc0bce28b297b720a2f0119ee8364dd13dbaf4e /rules/util-linux.make
parent2b4167ba98064850573d42ec7297a619916230ff (diff)
downloadptxdist-d192dcdbfe013c29eacefb28606d20cef50d467b.tar.gz
ptxdist-d192dcdbfe013c29eacefb28606d20cef50d467b.tar.xz
add fdisk support; make cross compile for ARM
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@1485 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/util-linux.make')
-rw-r--r--rules/util-linux.make11
1 files changed, 10 insertions, 1 deletions
diff --git a/rules/util-linux.make b/rules/util-linux.make
index c36ba5928..0b544541c 100644
--- a/rules/util-linux.make
+++ b/rules/util-linux.make
@@ -1,5 +1,5 @@
# -*-makefile-*-
-# $Id: util-linux.make,v 1.7 2003/12/08 12:39:19 bsp Exp $
+# $Id: util-linux.make,v 1.8 2004/07/16 09:13:48 rsc Exp $
#
# Copyright (C) 2003 by Robert Schwebel <r.schwebel@pengutronix.de>
#
@@ -56,6 +56,8 @@ $(STATEDIR)/util-linux.extract: $(util-linux_extract_deps)
@$(call clean, $(UTIL-LINUX_DIR))
@$(call extract, $(UTIL-LINUX_SOURCE))
@$(call patchin, $(UTIL-LINUX))
+
+ perl -i -p -e 's/^CPU=.*$$/CPU=$(PTXCONF_ARCH)/g' $(UTIL-LINUX_DIR)/MCONFIG
touch $@
# ----------------------------------------------------------------------------
@@ -104,6 +106,9 @@ endif
ifdef PTXCONF_UTLNX_READPROFILE
$(UTIL-LINUX_PATH) make -C $(UTIL-LINUX_DIR)/sys-utils readprofile
endif
+ifdef PTXCONF_UTLNX_FDISK
+ $(UTIL_LINUX_PATH) make -C $(UTIL-LINUX_DIR)/fdisk fdisk
+endif
#
# FIXME: implement other utilities
#
@@ -145,6 +150,10 @@ ifdef PTXCONF_UTLNX_READPROFILE
install -D $(UTIL-LINUX_DIR)/sys-utils/readprofile $(ROOTDIR)/usr/sbin/readprofile
$(CROSSSTRIP) -R .note -R comment $(ROOTDIR)/usr/sbin/readprofile
endif
+ifdef PTXCONF_UTLNX_FDISK
+ install -D $(UTIL-LINUX_DIR)/fdisk/fdisk $(ROOTDIR)/usr/sbin/fdisk
+ $(CROSSSTRIP) -R .note -R comment $(ROOTDIR)/usr/sbin/fdisk
+endif
touch $@
# ----------------------------------------------------------------------------