pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


Work state wifi ecu02
Posted by Anonymous on Tue 2nd Mar 2021 08:54
raw | new post

  1. From 3aee69d140c71457fa005ee3a1401af98195921b Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <r.mainz@eckelmann.de>
  3. Date: Tue, 2 Mar 2021 10:50:29 +0100
  4. Subject: [PATCH] WIP: rmz workstate WIFI
  5.  
  6. ---
  7. ptxdist/configs/ecu02/ptxconfig                    |  7 +-
  8.  .../usr/lib/systemd/system/hostapd.service         |  2 +-
  9.  ptxdist/local_src/ecu01-basicsys/usr/sbin/wlan-up  |  2 +-
  10.  ptxdist/rules/hostapd.make                         | 81 ++++++++++++++++++++++
  11.  4 files changed, 88 insertions(+), 4 deletions(-)
  12.  create mode 100644 ptxdist/rules/hostapd.make
  13.  
  14. diff --git a/ptxdist/configs/ecu02/ptxconfig b/ptxdist/configs/ecu02/ptxconfig
  15. index e33dcbb..e375f10 100644
  16. --- a/ptxdist/configs/ecu02/ptxconfig
  17. +++ b/ptxdist/configs/ecu02/ptxconfig
  18. @@ -1804,7 +1804,7 @@ PTXCONF_DHCP_DHCPD_CONF=y
  19.  # PTXCONF_HAPROXY is not set
  20.  # PTXCONF_HASERL is not set
  21.  # PTXCONF_HAVEGED is not set
  22. -# PTXCONF_HOSTAPD is not set
  23. +PTXCONF_HOSTAPD=y
  24.  # PTXCONF_HPING is not set
  25.  # PTXCONF_IFPLUGD is not set
  26.  # PTXCONF_IFTOP is not set
  27. @@ -1965,7 +1965,10 @@ PTXCONF_RSYNC3_STARTSCRIPT=y
  28.  PTXCONF_WIRELESS=y
  29.  PTXCONF_WIRELESS_SHARED=y
  30.  # PTXCONF_WIRESHARK is not set
  31. -# PTXCONF_WPA_SUPPLICANT is not set
  32. +PTXCONF_WPA_SUPPLICANT=y
  33. +# PTXCONF_WPA_SUPPLICANT_CTRL_IFACE_DBUS is not set
  34. +# PTXCONF_WPA_SUPPLICANT_PASSPHRASE is not set
  35. +# PTXCONF_WPA_SUPPLICANT_INSTALL_CLI is not set
  36.  # PTXCONF_WPAN_TOOLS is not set
  37.  # PTXCONF_ZSYNC is not set
  38.  
  39. diff --git a/ptxdist/local_src/ecu-basicsys/usr/lib/systemd/system/hostapd.service b/ptxdist/local_src/ecu-basicsys/usr/lib/systemd/system/hostapd.service
  40. index 0eb2811..6019960 100644
  41. --- a/ptxdist/local_src/ecu-basicsys/usr/lib/systemd/system/hostapd.service
  42. +++ b/ptxdist/local_src/ecu-basicsys/usr/lib/systemd/system/hostapd.service
  43. @@ -5,7 +5,7 @@ BindsTo=wlan.target
  44.  
  45.  [Service]
  46.  Type=forking
  47. -ExecStart=/usr/bin/hostapd -B /etc/hostapd/hostapd-device.conf
  48. +ExecStart=/usr/sbin/hostapd -B /etc/hostapd/hostapd-device.conf
  49.  ExecStop=/usr/bin/killall hostapd
  50.  
  51.  [Install]
  52. diff --git a/ptxdist/local_src/ecu01-basicsys/usr/sbin/wlan-up b/ptxdist/local_src/ecu01-basicsys/usr/sbin/wlan-up
  53. index 8fc7de1..97d73be 100755
  54. --- a/ptxdist/local_src/ecu01-basicsys/usr/sbin/wlan-up
  55. +++ b/ptxdist/local_src/ecu01-basicsys/usr/sbin/wlan-up
  56. @@ -15,4 +15,4 @@ fi
  57.  
  58.  ssid w "$SSID"
  59.  
  60. -/usr/bin/hostapd -B /tmp/hostapd-device.conf
  61. +/usr/sbin/hostapd -B /tmp/hostapd-device.conf
  62. diff --git a/ptxdist/rules/hostapd.make b/ptxdist/rules/hostapd.make
  63. new file mode 100644
  64. index 0000000..7dfa80e
  65. --- /dev/null
  66. +++ b/ptxdist/rules/hostapd.make
  67. @@ -0,0 +1,81 @@
  68. +# -*-makefile-*-
  69. +#
  70. +# Copyright (C) 2013 by Matthias Fend <matthias.fend@wolfvision.com>
  71. +#               2015 by Marc Kleine-Budde <mkl@pengutronix.de>
  72. +#
  73. +# For further information about the PTXdist project and license conditions
  74. +# see the README file.
  75. +#
  76. +
  77. +#
  78. +# We provide this package
  79. +#
  80. +PACKAGES-$(PTXCONF_HOSTAPD) += hostapd
  81. +
  82. +#
  83. +# Paths and names
  84. +#
  85. +HOSTAPD_NAME   := hostapd
  86. +HOSTAPD_VERSION        := 2.9
  87. +HOSTAPD_MD5    := f188fc53a495fe7af3b6d77d3c31dee8
  88. +HOSTAPD                := $(HOSTAPD_NAME)-$(HOSTAPD_VERSION)
  89. +HOSTAPD_SUFFIX := tar.gz
  90. +HOSTAPD_URL    := http://w1.fi/releases/$(HOSTAPD).$(HOSTAPD_SUFFIX)
  91. +HOSTAPD_SOURCE := $(SRCDIR)/$(HOSTAPD).$(HOSTAPD_SUFFIX)
  92. +HOSTAPD_DIR    := $(BUILDDIR)/$(HOSTAPD)
  93. +HOSTAPD_SUBDIR := $(HOSTAPD_NAME)
  94. +# Use '=' to delay $(shell ...) calls until this is needed
  95. +HOSTAPD_CONFIG  = $(call ptx/get-alternative, config/hostapd, defconfig)
  96. +HOSTAPD_DOTCONFIG := $(BUILDDIR)/$(HOSTAPD)/$(HOSTAPD_SUBDIR)/.config
  97. +HOSTAPD_LICENSE        := BSD-3-Clause
  98. +HOSTAPD_LICENSE_FILES := \
  99. +       file://COPYING;md5=279b4f5abb9c153c285221855ddb78cc \
  100. +       file://README;md5=e7d3dbb01f75f0b9799e192731d1e1ff
  101. +
  102. +# ----------------------------------------------------------------------------
  103. +# Prepare
  104. +# ----------------------------------------------------------------------------
  105. +
  106. +HOSTAPD_MAKE_ENV := \
  107. +       $(CROSS_ENV) \
  108. +       BINDIR=/usr/sbin
  109. +
  110. +$(STATEDIR)/hostapd.prepare:
  111. +       @$(call targetinfo)
  112. +#      # run 'make clean' as hostapd's build system does not recognize config changes
  113. +       @-$(HOSTAPD_MAKE_ENV) $(MAKE) -C $(HOSTAPD_DIR)/$(HOSTAPD_SUBDIR) clean
  114. +       @cp $(HOSTAPD_CONFIG) $(HOSTAPD_DOTCONFIG)
  115. +       @$(call touch)
  116. +
  117. +# ----------------------------------------------------------------------------
  118. +# Install
  119. +# ----------------------------------------------------------------------------
  120. +
  121. +$(STATEDIR)/hostapd.install:
  122. +       @$(call targetinfo)
  123. +       @$(call world/install, HOSTAPD)
  124. +       @install -v -m644 -D $(HOSTAPD_DIR)/hostapd/hostapd.conf \
  125. +               $(HOSTAPD_PKGDIR)/etc/hostapd/hostapd.conf
  126. +       @$(call touch)
  127. +
  128. +# ----------------------------------------------------------------------------
  129. +# Target-Install
  130. +# ----------------------------------------------------------------------------
  131. +
  132. +$(STATEDIR)/hostapd.targetinstall:
  133. +       @$(call targetinfo)
  134. +
  135. +       @$(call install_init, hostapd)
  136. +       @$(call install_fixup, hostapd,PRIORITY,optional)
  137. +       @$(call install_fixup, hostapd,SECTION,base)
  138. +       @$(call install_fixup, hostapd,AUTHOR,"Matthias Fend <matthias.fend@wolfvision.com>")
  139. +       @$(call install_fixup, hostapd,DESCRIPTION,missing)
  140. +
  141. +       @$(call install_copy, hostapd, 0, 0, 0755, -, /usr/sbin/hostapd)
  142. +#      @$(call install_alternative, hostapd, 0, 0, 0644, /etc/hostapd/hostapd.conf)
  143. +
  144. +       @$(call install_finish, hostapd)
  145. +
  146. +       @$(call touch)
  147. +
  148. +# vim: syntax=make
  149. --
  150. 1.9.1

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at