meson: remove old automake files

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I86db79e9e91508a8877cac1d6496e5b06adc17c2
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 7b7f46d..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,64 +0,0 @@
-AM_DEFAULT_SOURCE_EXT = .cpp
-
-systemdsystemunit_DATA = \
-  pcie-poweroff@.service \
-  xyz.openbmc_project.Control.Host.NMI.service \
-  op-stop-instructions@.service \
-  op-cfam-reset.service \
-  op-continue-mpreboot@.service \
-  op-enter-mpreboot@.service
-
-if ENABLE_PHAL
-  systemdsystemunit_DATA += set-spi-mux.service \
-                            phal-reinit-devtree.service \
-                            proc-pre-poweroff@.service
-endif
-
-bin_PROGRAMS = \
-	openpower-proc-control \
-	openpower-proc-nmi
-
-openpower_proc_control_SOURCES = \
-	proc_control.cpp \
-	cfam_access.cpp \
-	filedescriptor.cpp \
-	registration.cpp \
-	targeting.cpp \
-	openpower_procedures.cpp \
-	ext_interface.cpp \
-	util.cpp
-
-openpower_proc_nmi_SOURCES = \
-	nmi_main.cpp \
-	nmi_interface.cpp
-
-CLEANFILES = openpower_procedures.cpp
-
-openpower_proc_control_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
-                                 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
-                                 $(SDBUSPLUS_LIBS) \
-                                 -lgpiodcxx \
-                                 -lpthread
-
-openpower_proc_control_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
-                                  $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
-                                  $(SDBUSPLUS_CFLAGS)
-
-openpower_proc_nmi_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
-                             $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
-                             $(SDBUSPLUS_LIBS)
-
-openpower_proc_nmi_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
-                              $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
-                              $(SDBUSPLUS_CFLAGS)
-if ENABLE_PHAL
-noinst_LTLIBRARIES = libphalerror.la
-libphalerror_la_SOURCES = phalerror/create_pel.cpp \
-            phalerror/phal_error.cpp
-
-openpower_proc_control_LDADD = libphalerror.la
-endif
-
-SUBDIRS = test
-
--include Makefile.generated
diff --git a/Makefile.generated.in b/Makefile.generated.in
deleted file mode 100644
index 0aad258..0000000
--- a/Makefile.generated.in
+++ /dev/null
@@ -1 +0,0 @@
-#Empty file so that 'configure' attempts to generate Makefile.generated.
diff --git a/bootstrap.sh b/bootstrap.sh
deleted file mode 100755
index 0d209c8..0000000
--- a/bootstrap.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh -xe
-
-AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
-        config.guess config.h.in config.sub configure depcomp install-sh \
-        ltmain.sh missing *libtool test-driver"
-
-case $1 in
-    clean)
-        test -f Makefile && make maintainer-clean
-        for file in ${AUTOCONF_FILES}; do
-            find . -name "$file" -print0 | xargs -0 -r rm -rf
-        done
-        exit 0
-        ;;
-esac
-
-autoreconf -i
-# shellcheck disable=SC2016
-echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
\ No newline at end of file
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 95b057c..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,124 +0,0 @@
-AC_PREREQ([2.69])
-AC_INIT([openpower-proc-control], [1.0], [https://github.com/openbmc/openpower-proc-control/issues])
-AC_LANG([C++])
-AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
-AM_SILENT_RULES([yes])
-
-# Checks for programs
-AC_PROG_CXX
-AM_PROG_AR
-AC_PROG_INSTALL #Checks/sets the install variable to be used
-AC_PROG_MAKE_SET
-
-# Checks for typedefs, structures, and compiler characteristics.
-AX_CXX_COMPILE_STDCXX_17([noext])
-AX_APPEND_COMPILE_FLAGS([-Wall -Werror -Wno-psabi], [CXXFLAGS])
-
-# Checks for library functions
-LT_INIT
-
-# Check/set gtest specific functions.
-AX_PTHREAD([GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=1"],[GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=0"])
-AC_SUBST(GTEST_CPPFLAGS)
-AC_ARG_ENABLE([oe-sdk],
-    AS_HELP_STRING([--enable-oe-sdk], [Link testcases absolutely against OE SDK so they can be ran within it.])
-)
-AC_ARG_VAR(OECORE_TARGET_SYSROOT,
-    [Path to the OE SDK SYSROOT])
-AS_IF([test "x$enable_oe_sdk" == "xyes"],
-    AS_IF([test "x$OECORE_TARGET_SYSROOT" == "x"],
-          AC_MSG_ERROR([OECORE_TARGET_SYSROOT must be set with --enable-oe-sdk])
-    )
-    AC_MSG_NOTICE([Enabling OE-SDK at $OECORE_TARGET_SYSROOT])
-    [
-        testcase_flags="-Wl,-rpath,\${OECORE_TARGET_SYSROOT}/lib"
-        testcase_flags="${testcase_flags} -Wl,-rpath,\${OECORE_TARGET_SYSROOT}/usr/lib"
-        testcase_flags="${testcase_flags} -Wl,-dynamic-linker,`find \${OECORE_TARGET_SYSROOT}/lib/ld-*.so | sort -r -n | head -n1`"
-    ]
-    AC_SUBST([OESDK_TESTCASE_FLAGS], [$testcase_flags])
-)
-
-#CHIPS can be passed in a from a recipe, or it will default to P9 and openfsi
-AC_ARG_VAR(CHIPS, [The list of chips to build the procedures for])
-
-AC_ARG_ENABLE([p9], AS_HELP_STRING([--enable-p9], [Use internal host initialisation procedures for POWER9 processors]))
-AS_IF([test "$enable_p9" == "yes"], [CHIPS+=" p9 common"])
-
-AC_ARG_ENABLE([openfsi], AS_HELP_STRING([--enable-openfsi], [Support Openfsi]))
-AS_IF([test "$enable_openfsi" == "yes"], [CHIPS+=" openfsi"])
-
-AC_ARG_ENABLE([phal], AS_HELP_STRING([--enable-phal], [Use host processor initialisation procedures from PHAL])])
-
-AS_IF([ test "$enable_phal" == "yes" && test "$enable_p9" == "yes"],
-      [ AC_MSG_ERROR([Internal POWER9 and PHAL-provided procedures conflict, please configure only one])]
-     )
-
-AS_IF([test "$enable_phal" == "yes"],
-      [
-       AX_ABSOLUTE_HEADER([libipl.H])
-       if test x"$gl_cv_absolute_libipl_H" == "x" ; then
-               AC_MSG_ERROR([Cannot find libipl.H path])
-       fi
-       AC_CHECK_LIB([ipl], [ipl_init])
-       if test x"$ac_cv_lib_ipl_ipl_init" != "xyes" ; then
-               AC_MSG_ERROR([IPL library not found])
-       fi
-
-       AX_ABSOLUTE_HEADER([libekb.H])
-       if test x"$gl_cv_absolute_libekb_H" == "x" ; then
-               AC_MSG_ERROR([Cannot find libekb.H path])
-       fi
-       AC_CHECK_LIB([ekb], [libekb_init])
-       if test x"$ac_cv_lib_ekb_libekb_init" != "xyes" ; then
-               AC_MSG_ERROR([EKB library not found])
-       fi
-
-       PKG_CHECK_MODULES([LIBDT_API], [libdt-api])
-       LIBS="$LIBS $LIBDT_API_LIBS"
-       CFLAGS="$CFLAGS $LIBDT_API_CFLAGS"
-
-       CHIPS+=" phal common"
-       AC_CONFIG_FILES([set-spi-mux.service])
-       AC_CONFIG_FILES([phal-reinit-devtree.service])
-       AC_CONFIG_FILES([proc-pre-poweroff@.service])
-      ]
-     )
-
-AM_CONDITIONAL([ENABLE_PHAL], [test "$enable_phal" == "yes"])
-AS_IF([test "x$CHIPS" == "x"], [CHIPS="p9 openfsi common"])
-
-AC_CONFIG_FILES([Makefile.generated],
-    [${srcdir}/gen_makefile.sh ${srcdir} "$myChips" > Makefile.generated],
-    [myChips="$CHIPS"])
-
-AC_CHECK_LIB([pdbg], [thread_sreset_all])
-
-PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
-PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
-PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
-PKG_CHECK_MODULES([FMT], [fmt])
-LIBS="$LIBS $FMT_LIBS"
-
-PKG_PROG_PKG_CONFIG
-AC_ARG_WITH([systemdsystemunitdir],
-     [AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files])],,
-     [with_systemdsystemunitdir=auto])
-AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"], [
-     def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
-
-     AS_IF([test "x$def_systemdsystemunitdir" = "x"],
-   [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"],
-    [AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])])
-    with_systemdsystemunitdir=no],
-   [with_systemdsystemunitdir="$def_systemdsystemunitdir"])])
-AS_IF([test "x$with_systemdsystemunitdir" != "xno"],
-      [AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])])
-
-AC_CONFIG_FILES([Makefile test/Makefile])
-AC_CONFIG_FILES([pcie-poweroff@.service])
-AC_CONFIG_FILES([xyz.openbmc_project.Control.Host.NMI.service])
-AC_CONFIG_FILES([op-stop-instructions@.service])
-AC_CONFIG_FILES([op-cfam-reset.service])
-AC_CONFIG_FILES([op-continue-mpreboot@.service])
-AC_CONFIG_FILES([op-enter-mpreboot@.service])
-AC_OUTPUT
diff --git a/gen_makefile.sh b/gen_makefile.sh
deleted file mode 100755
index d1aaf66..0000000
--- a/gen_makefile.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-files=()
-dir=$1     #Base directory
-# shellcheck disable=SC2206 # $2 is purposefully wordsplit.
-types=($2) #List of types (convert to array)
-
-echo "openpower_procedures_cpp_files = \\"
-for ((i=0; i<${#types[@]}; ++i));
-do
-    type=${types[$i]}
-    type=${type// /} #remove spaces
-    for file in "$dir"/procedures/"$type"/*.cpp;
-    do
-        files+=("$file")
-    done
-done
-
-for file in "${files[@]}";
-do
-    echo "	$file \\"
-done
-echo
-
-cat << MAKEFILE
-openpower_procedures.cpp: \$(openpower_procedures_cpp_files)
-	cat \$^ > \$@
-
-MAKEFILE