diff options
author | Benedikt Spranger <b.spranger@pengutronix.de> | 2003-12-04 13:19:46 +0000 |
---|---|---|
committer | Benedikt Spranger <b.spranger@pengutronix.de> | 2003-12-04 13:19:46 +0000 |
commit | e4d60c8aeafc73b8c7d8166e294b4b82c892973d (patch) | |
tree | 24c0421cd9379214cb6fca65be168ffdeef02f40 /rules/util-linux.make | |
parent | f6bfb177daeadc206cb54c887a360ea5baa3b19d (diff) | |
download | ptxdist-e4d60c8aeafc73b8c7d8166e294b4b82c892973d.tar.gz ptxdist-e4d60c8aeafc73b8c7d8166e294b4b82c892973d.tar.xz |
BSP: Frako dist.
openssh-host-keygen.sh: new scheme to generate hostkeys.
e2fsprogs: hosttool section added
grub: new framework to generate bootimages without sudo (to be continued)
hosttools: util-linux added
openssh: see openssh-host-keygen.sh
util-linux: hosttool section added
etc/frako/* + vendor-tweaks/frako: frako specific configurations
e2tools/sysvinit: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@869 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/util-linux.make')
-rw-r--r-- | rules/util-linux.make | 93 |
1 files changed, 92 insertions, 1 deletions
diff --git a/rules/util-linux.make b/rules/util-linux.make index 3fd3216cf..cc24bbfd7 100644 --- a/rules/util-linux.make +++ b/rules/util-linux.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: util-linux.make,v 1.5 2003/10/26 06:28:35 mkl Exp $ +# $Id: util-linux.make,v 1.6 2003/12/04 13:19:46 bsp Exp $ # # Copyright (C) 2003 by Robert Schwebel <r.schwebel@pengutronix.de> # @@ -26,6 +26,8 @@ UTIL-LINUX_URL = http://ftp.cwi.nl/aeb/util-linux/$(UTIL-LINUX).$(UTIL-LINUX_SU UTIL-LINUX_SOURCE = $(SRCDIR)/$(UTIL-LINUX).$(UTIL-LINUX_SUFFIX) UTIL-LINUX_DIR = $(BUILDDIR)/$(UTIL-LINUX) +HOSTTOOL_UTIL-LINUX_DIR = $(BUILDDIR)/hosttool/$(UTIL-LINUX) + # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- @@ -57,6 +59,21 @@ $(STATEDIR)/util-linux.extract: $(util-linux_extract_deps) @$(call extract, $(UTIL-LINUX_SOURCE)) @$(call patchin, $(UTIL-LINUX)) touch $@ + +# ---------------------------------------------------------------------------- +# Hosttool Extract +# ---------------------------------------------------------------------------- + +hosttool-util-linux_extract: $(STATEDIR)/hosttool-util-linux.extract + +hosttool-util-linux_extract_deps = $(STATEDIR)/util-linux.get + +$(STATEDIR)/hosttool-util-linux.extract: $(hosttool-util-linux_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(UTIL-LINUX_DIR)) + @$(call extract, $(UTIL-LINUX_SOURCE), $(BUILDDIR)/hosttool) + @$(call patchin, $(UTIL-LINUX)) + touch $@ # ---------------------------------------------------------------------------- # Prepare @@ -82,6 +99,23 @@ $(STATEDIR)/util-linux.prepare: $(util-linux_prepare_deps) touch $@ # ---------------------------------------------------------------------------- +# Hosttool Prepare +# ---------------------------------------------------------------------------- + +hosttool-util-linux_prepare: $(STATEDIR)/hosttool-util-linux.prepare + +# +# dependencies +# +hosttool-util-linux_prepare_deps = $(STATEDIR)/hosttool-util-linux.extract + +$(STATEDIR)/hosttool-util-linux.prepare: $(hosttool-util-linux_prepare_deps) + @$(call targetinfo, $@) + cd $(HOSTTOOL_UTIL-LINUX_DIR) && \ + $(HOSTCC_ENV) ./configure + touch $@ + +# ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- @@ -110,6 +144,29 @@ endif touch $@ # ---------------------------------------------------------------------------- +# Hosttool Compile +# ---------------------------------------------------------------------------- + +hosttool-util-linux_compile: $(STATEDIR)/hosttool-util-linux.compile + +hosttool-util-linux_compile_deps = $(STATEDIR)/hosttool-util-linux.prepare + +$(STATEDIR)/hosttool-util-linux.compile: $(hosttool-util-linux_compile_deps) + @$(call targetinfo, $@) + +ifdef PTXCONF_UTLNX_SFDISK + $(UTIL-LINUX_PATH) make -C $(HOSTTOOL_UTIL-LINUX_DIR)/fdisk sfdisk +endif + +ifdef PTXCONF_UTLNX_FDISK + $(UTIL-LINUX_PATH) make -C $(HOSTTOOL_UTIL-LINUX_DIR)/fdisk fdisk +endif + +ifdef PTXCONF_UTLNX_CFFDISK + $(UTIL-LINUX_PATH) make -C $(HOSTTOOL_UTIL-LINUX_DIR)/fdisk cfdisk +endif + +# ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- @@ -120,6 +177,32 @@ $(STATEDIR)/util-linux.install: $(STATEDIR)/util-linux.compile touch $@ # ---------------------------------------------------------------------------- +# Hosttool Install +# ---------------------------------------------------------------------------- + +hosttool-util-linux_install: $(STATEDIR)/hosttool-util-linux.install + +$(STATEDIR)/hosttool-util-linux.install: $(STATEDIR)/hosttool-util-linux.compile + @$(call targetinfo, $@) + +ifdef PTXCONF_UTLNX_SFDISK + install -D $(HOSTTOOL_UTIL-LINUX_DIR)/fdisk/sfdisk \ + $(PTXCONF_PREFIX)/sbin/sfdisk +endif + +ifdef PTXCONF_UTLNX_FDISK + install -D $(HOSTTOOL_UTIL-LINUX_DIR)/fdisk/sfdisk \ + $(PTXCONF_PREFIX)/sbin/sfdisk +endif + +ifdef PTXCONF_UTLNX_CFFDISK + install -D $(HOSTTOOL_UTIL-LINUX_DIR)/fdisk/sfdisk \ + $(PTXCONF_PREFIX)/sbin/sfdisk +endif + + touch $@ + +# ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- @@ -155,4 +238,12 @@ util-linux_clean: rm -rf $(STATEDIR)/util-linux.* rm -rf $(UTIL-LINUX_DIR) +# ---------------------------------------------------------------------------- +# Hosttool Clean +# ---------------------------------------------------------------------------- + +hosttool-util-linux_clean: + rm -rf $(STATEDIR)/hosttool-util-linux.* + rm -rf $(HOSTTOOL_UTIL-LINUX_DIR) + # vim: syntax=make |