summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-06-12 11:27:16 +0200
committerLucas Stach <l.stach@pengutronix.de>2018-06-12 18:23:54 +0200
commit0fd514592cae47f65ad8dd454c807ce9f4297fc6 (patch)
tree42e091801ce015bd4400816203accb8af7a14164
parentf7601b998d68391177b9baf2cd9b9ce8f3a07c69 (diff)
downloaddrm-sched-top-0fd514592cae47f65ad8dd454c807ce9f4297fc6.tar.gz
drm-sched-top-0fd514592cae47f65ad8dd454c807ce9f4297fc6.tar.xz
add build system
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
-rw-r--r--.gitignore17
-rw-r--r--Makefile.am13
-rwxr-xr-xautogen.sh2
-rw-r--r--configure.ac19
-rw-r--r--drm-sched-top.c22
5 files changed, 73 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7a1d947 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,17 @@
+Makefile.in
+aclocal.m4
+autom4te.cache/
+compile
+config.guess
+config.sub
+configure
+depcomp
+install-sh
+missing
+.deps/
+Makefile
+config.log
+config.status
+.*
+drm-sched-top
+drm-sched-top.o
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..423b989
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,13 @@
+bin_PROGRAMS = \
+ drm-sched-top
+
+EXTRA_DIST = \
+ autogen.sh
+
+MAINTAINERCLEANFILES = \
+ configure \
+ aclocal.m4 \
+ Makefile.in
+
+drm_sched_top_SOURCES = \
+ drm-sched-top.c
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..ce39a2d
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,2 @@
+#! /bin/sh
+autoreconf -i
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..7a7e9b8
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,19 @@
+AC_PREREQ(2.59)
+
+AC_INIT([drm-sched-top], 0.1, [oss-tools@pengutronix.de])
+AC_CONFIG_SRCDIR([drm-sched-top.c])
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+
+AM_MAINTAINER_MODE
+
+CFLAGS="${CFLAGS} -W -Wall"
+
+AC_PROG_CC
+
+AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2])
+
+AC_CONFIG_FILES([
+ Makefile
+])
+AC_OUTPUT
diff --git a/drm-sched-top.c b/drm-sched-top.c
new file mode 100644
index 0000000..bdcccd3
--- /dev/null
+++ b/drm-sched-top.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2018 Pengutronix, Lucas Stach <l.stach@pengutronix.de>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */