From patchwork Tue Jul 5 08:43:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 644622 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rkHVM6YnVz9sCj for ; Tue, 5 Jul 2016 18:43:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DFB2F30C66; Tue, 5 Jul 2016 08:43:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Ni9L9TcNUiq; Tue, 5 Jul 2016 08:43:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C185D30C31; Tue, 5 Jul 2016 08:43:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5A2EE1C1774 for ; Tue, 5 Jul 2016 08:43:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 586A68B0C8 for ; Tue, 5 Jul 2016 08:43:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a5QnKUVuArf4 for ; Tue, 5 Jul 2016 08:43:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6BC9E8B141 for ; Tue, 5 Jul 2016 08:43:47 +0000 (UTC) Received: from us02secmta2.synopsys.com (us02secmta2.synopsys.com [10.12.235.98]) by smtprelay.synopsys.com (Postfix) with ESMTP id 42D5310C1602; Tue, 5 Jul 2016 01:43:44 -0700 (PDT) Received: from us02secmta2.internal.synopsys.com (us02secmta2.internal.synopsys.com [127.0.0.1]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 3579A55F13; Tue, 5 Jul 2016 01:43:44 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 0501E55F02; Tue, 5 Jul 2016 01:43:44 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id E7060756; Tue, 5 Jul 2016 01:43:43 -0700 (PDT) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id 9217F74D; Tue, 5 Jul 2016 01:43:41 -0700 (PDT) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 5 Jul 2016 01:43:41 -0700 Received: from DE02WEMBXB.internal.synopsys.com ([fe80::95ce:118a:8321:a099]) by DE02WEHTCB.internal.synopsys.com ([::1]) with mapi id 14.03.0266.001; Tue, 5 Jul 2016 10:43:40 +0200 From: Alexey Brodkin To: "buildroot@busybox.net" Thread-Topic: hostapd: default hostapd.conf on target Thread-Index: AQHR1plTQRvbZPF1xEufxoDVbeaw+g== Date: Tue, 5 Jul 2016 08:43:39 +0000 Message-ID: <1467708149.3144.46.camel@synopsys.com> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.121.8.129] Content-ID: <9D89624AF5FC3F42BC3014B74B39A890@internal.synopsys.com> MIME-Version: 1.0 Cc: "thomas.petazzoni@free-electrons.com" Subject: [Buildroot] hostapd: default hostapd.conf on target X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hello, I'm wondering if there's a reason default/example hostapd.conf is not installed on target? IMHO it would be pretty convenient to have that config as a starting point. Otherwise user has to create it manually from scratch. Technically this is just a matter of: ------------------------>8------------------------- ------------------------>8------------------------- If there's no real reason to not have this I'll send a patch happily. -Alexey diff --git a/package/hostapd/hostapd.mk b/package/hostapd/hostapd.mk index dca07c1..40a21ff 100644 --- a/package/hostapd/hostapd.mk +++ b/package/hostapd/hostapd.mk @@ -85,7 +85,9 @@ define HOSTAPD_INSTALL_TARGET_CMDS         $(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd \                 $(TARGET_DIR)/usr/sbin/hostapd         $(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd_cli \ -               $(TARGET_DIR)/usr/bin/hostapd_cli +               $(TARGET_DIR)/usr/bin/hostapd_cli \ +       $(INSTALL) -m 0644 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd/hostapd.conf \ +               $(TARGET_DIR)/etc/hostapd.conf  endef    $(eval $(generic-package))