lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1414495589-8579-12-git-send-email-qais.yousef@imgtec.com>
Date:	Tue, 28 Oct 2014 11:26:29 +0000
From:	Qais Yousef <qais.yousef@...tec.com>
To:	<linux-kernel@...r.kernel.org>
CC:	Qais Yousef <qais.yousef@...tec.com>,
	Arnd Bergmann <arnd@...db.de>,
	"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
	<alsa-devel@...a-project.org>
Subject: [PATCH 11/11] drivers: char: axd: add Kconfig and Makefile

Now all necessary files are added, allow AXD to be selected through
Kconfig and compiled.

NOTE: at the moment AXD can only work on MIPS but this restrictions
should be lifted in the future as it evolves.

Signed-off-by: Qais Yousef <qais.yousef@...tec.com>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: <alsa-devel@...a-project.org>
---
 drivers/char/Kconfig      |  2 ++
 drivers/char/Makefile     |  2 ++
 drivers/char/axd/Kconfig  | 19 +++++++++++++++++++
 drivers/char/axd/Makefile | 20 ++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 100644 drivers/char/axd/Kconfig
 create mode 100644 drivers/char/axd/Makefile

diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
index efefd12a0f7b..7800a72cf771 100644
--- a/drivers/char/Kconfig
+++ b/drivers/char/Kconfig
@@ -602,5 +602,7 @@ config TILE_SROM
 
 source "drivers/char/xillybus/Kconfig"
 
+source "drivers/char/axd/Kconfig"
+
 endmenu
 
diff --git a/drivers/char/Makefile b/drivers/char/Makefile
index d06cde26031b..6c1769d8abf3 100644
--- a/drivers/char/Makefile
+++ b/drivers/char/Makefile
@@ -62,3 +62,5 @@ js-rtc-y = rtc.o
 
 obj-$(CONFIG_TILE_SROM)		+= tile-srom.o
 obj-$(CONFIG_XILLYBUS)		+= xillybus/
+
+obj-$(CONFIG_AXD)		+= axd/
diff --git a/drivers/char/axd/Kconfig b/drivers/char/axd/Kconfig
new file mode 100644
index 000000000000..a1a94b12c04a
--- /dev/null
+++ b/drivers/char/axd/Kconfig
@@ -0,0 +1,19 @@
+config AXD
+	tristate "AXD Audio Processing IP"
+	depends on MIPS && COMMON_CLK && CMA
+	---help---
+	  Say Y here if you want to use AXD Audio Processing IP.
+
+config AXD_DEBUG_DIAG
+	bool "AXD diagnostics"
+	depends on AXD
+	---help---
+	  Say Y if you want AXD driver to print some diagnostics after playing
+	  a stream.
+
+config AXD_DEBUG_VERBOSE
+	bool "AXD verbose debug"
+	depends on AXD
+	---help---
+	  Say Y if you want AXD driver to print verbose debug information.
+	  The output is extensive.
diff --git a/drivers/char/axd/Makefile b/drivers/char/axd/Makefile
new file mode 100644
index 000000000000..3b367721073d
--- /dev/null
+++ b/drivers/char/axd/Makefile
@@ -0,0 +1,20 @@
+obj-$(CONFIG_AXD) := axd.o
+
+axd-objs = axd_buffers.o \
+	   axd_cmds.o \
+	   axd_cmds_codec_internal.o \
+	   axd_cmds_config.o \
+	   axd_cmds_decoder_config.o \
+	   axd_cmds_encoder_config.o \
+	   axd_cmds_info.o \
+	   axd_cmds_internal.o \
+	   axd_cmds_pipes.o \
+	   axd_hdr.o \
+	   axd_module.o \
+	   axd_platform_mips.o \
+	   axd_sysfs_ctrl.o \
+	   axd_sysfs_input.o \
+	   axd_sysfs_output.o
+
+ccflags-$(CONFIG_AXD_DEBUG_DIAG) += -DDEBUG_DIAG
+ccflags-$(CONFIG_AXD_DEBUG_VERBOSE) += -DDEBUG_BUFFERS
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ