summaryrefslogtreecommitdiffstats
path: root/rules/dhcp.make
diff options
context:
space:
mode:
authorErwin Rol <erwin@erwinrol.com>2006-03-23 15:05:20 +0000
committerErwin Rol <erwin@erwinrol.com>2006-03-23 15:05:20 +0000
commit346308cb2f7ade9272b5270bd78ac459662c4e62 (patch)
tree36b21b1b77fd63f2bd30b3e437a070a4262fd5c9 /rules/dhcp.make
parent8f1e7243ce6524127f78c2d2cf70539f35e5e08a (diff)
downloadptxdist-346308cb2f7ade9272b5270bd78ac459662c4e62.tar.gz
ptxdist-346308cb2f7ade9272b5270bd78ac459662c4e62.tar.xz
Fix cross compile error and add selection for server, client and relay install
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5231 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/dhcp.make')
-rw-r--r--rules/dhcp.make16
1 files changed, 13 insertions, 3 deletions
diff --git a/rules/dhcp.make b/rules/dhcp.make
index f53a91dbc..fd5d6a70f 100644
--- a/rules/dhcp.make
+++ b/rules/dhcp.make
@@ -80,7 +80,7 @@ dhcp_compile: $(STATEDIR)/dhcp.compile
$(STATEDIR)/dhcp.compile: $(dhcp_compile_deps_default)
@$(call targetinfo, $@)
- cd $(DHCP_DIR) && $(DHCP_PATH) make
+ cd $(DHCP_DIR) && $(DHCP_PATH) $(DHCP_ENV) make
@$(call touch, $@)
# ----------------------------------------------------------------------------
@@ -111,8 +111,18 @@ $(STATEDIR)/dhcp.targetinstall: $(dhcp_targetinstall_deps_default)
@$(call install_fixup, dhcp,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup, dhcp,DEPENDS,)
@$(call install_fixup, dhcp,DESCRIPTION,missing)
-
- @$(call install_copy, dhcp, 0, 0, 0755, $(DHCP_DIR)/work.linux-2.2/server/dhcpd, /usr/sbin/dhcpd)
+
+ifdef PTXCONF_DHCP_SERVER
+ @$(call install_copy, dhcp, 0, 0, 0755, $(DHCP_DIR)/work.linux-2.2/server/dhcpd, /sbin/dhcpd)
+endif
+
+ifdef PTXCONF_DHCP_CLIENT
+ @$(call install_copy, dhcp, 0, 0, 0755, $(DHCP_DIR)/work.linux-2.2/client/dhclient, /sbin/dhclient)
+endif
+
+ifdef PTXCONF_DHCP_RELAY
+ @$(call install_copy, dhcp, 0, 0, 0755, $(DHCP_DIR)/work.linux-2.2/relay/dhcrelay, /sbin/dhcrelay)
+endif
@$(call install_finish, dhcp)