1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# -*-makefile-*-
#
# Copyright (C) 2003 by Pengutronix e.K., Hildesheim, Germany
# 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# 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
#
PACKAGES-$(PTXCONF_WIRELESS) += wireless
#
# Paths and names
#
WIRELESS_VERSION := 30
WIRELESS_MD5 := ca91ba7c7eff9bfff6926b1a34a4697d
WIRELESS_VERSION_PRE := pre9
WIRELESS := wireless_tools.$(WIRELESS_VERSION).$(WIRELESS_VERSION_PRE)
WIRELESS_SUFFIX := tar.gz
WIRELESS_URL := http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$(WIRELESS).$(WIRELESS_SUFFIX)
WIRELESS_SOURCE := $(SRCDIR)/$(WIRELESS).$(WIRELESS_SUFFIX)
WIRELESS_DIR := $(BUILDDIR)/wireless_tools.$(WIRELESS_VERSION)
WIRELESS_LICENSE := GPL-2.0
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
$(STATEDIR)/wireless.prepare:
@$(call targetinfo)
ifdef PTXCONF_WIRELESS_SHARED
@$(call disable_sh,$(WIRELESS_DIR)/Makefile,BUILD_STATIC)
else
@$(call enable_sh, $(WIRELESS_DIR)/Makefile,BUILD_STATIC)
endif
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
WIRELESS_PATH := PATH=$(CROSS_PATH)
WIRELESS_ENV := $(CROSS_ENV)
WIRELESS_MAKEVARS := \
$(CROSS_ENV_CC) \
PREFIX=/usr
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/wireless.install:
@$(call targetinfo)
@$(call install, WIRELESS,,install-hdr)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/wireless.targetinstall:
@$(call targetinfo)
@$(call install_init, wireless)
@$(call install_fixup, wireless,PRIORITY,optional)
@$(call install_fixup, wireless,SECTION,base)
@$(call install_fixup, wireless,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, wireless,DESCRIPTION,missing)
@$(call install_copy, wireless, 0, 0, 0755, -, /usr/sbin/iwconfig)
@$(call install_copy, wireless, 0, 0, 0755, -, /usr/sbin/iwlist)
@$(call install_copy, wireless, 0, 0, 0755, -, /usr/sbin/iwpriv)
@$(call install_copy, wireless, 0, 0, 0755, -, /usr/sbin/iwspy)
@$(call install_copy, wireless, 0, 0, 0755, -, /usr/sbin/iwgetid)
@$(call install_copy, wireless, 0, 0, 0755, -, /usr/sbin/iwevent)
ifdef PTXCONF_WIRELESS_SHARED
@$(call install_lib, wireless, 0, 0, 0644, libiw)
endif
@$(call install_finish, wireless)
@$(call touch)
# vim: syntax=make
|