From 0071ecef8bac9a0b7ae970cbbddb3a6431880951 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 14 Sep 2018 13:47:51 +0200 Subject: [PATCH] build: Add skeleton for Ethernet authentication daemon --- .gitignore | 1 + Makefile.am | 8 ++++++++ bootstrap-configure | 1 + configure.ac | 5 +++++ wired/main.c | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 wired/main.c diff --git a/.gitignore b/.gitignore index 62f116b2..edf63296 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ src/iwd src/iwd.service client/iwctl monitor/iwmon +wired/ead tools/hwsim tools/test-runner doc/iwmon.1 diff --git a/Makefile.am b/Makefile.am index 548934cf..f44e27e8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -179,6 +179,14 @@ monitor_iwmon_SOURCES = monitor/main.c linux/nl80211.h \ monitor_iwmon_LDADD = ell/libell-internal.la endif +if WIRED +libexec_PROGRAMS += wired/ead + +wired_ead_SOURCES = wired/main.c +wired_ead_LDADD = ell/libell-internal.la +wired_ead_DEPENDENCIES = ell/libell-internal.la +endif + if TOOLS noinst_PROGRAMS += tools/hwsim diff --git a/bootstrap-configure b/bootstrap-configure index bbc28dc2..4b12d5a9 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -11,6 +11,7 @@ fi --localstatedir=/var \ --enable-sim-hardcoded \ --enable-ofono \ + --enable-wired \ --enable-tools \ --disable-dbus-policy \ --disable-systemd-service $* diff --git a/configure.ac b/configure.ac index fe4ac171..80e11f11 100644 --- a/configure.ac +++ b/configure.ac @@ -154,6 +154,11 @@ AC_ARG_ENABLE(ofono, AC_HELP_STRING([--enable-ofono], [enable_ofono=${enableval}]) AM_CONDITIONAL(OFONO, test "${enable_ofono}" = "yes") +AC_ARG_ENABLE(wired, AC_HELP_STRING([--enable-wired], + [enable Ethernet authentication support]), + [enable_wired=${enableval}]) +AM_CONDITIONAL(WIRED, test "${enable_wired}" = "yes") + AC_ARG_ENABLE(tools, AC_HELP_STRING([--enable-tools], [enable internal testing utilities]), [enable_tools=${enableval}]) diff --git a/wired/main.c b/wired/main.c new file mode 100644 index 00000000..4d4369f7 --- /dev/null +++ b/wired/main.c @@ -0,0 +1,32 @@ +/* + * + * Ethernet daemon for Linux + * + * Copyright (C) 2017-2018 Intel Corporation. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + +int main(int argc, char *argv[]) +{ + return EXIT_SUCCESS; +}