aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/geode-drivers/geode-modules.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/geode-drivers/geode-modules.inc')
-rw-r--r--recipes/geode-drivers/geode-modules.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/geode-drivers/geode-modules.inc b/recipes/geode-drivers/geode-modules.inc
new file mode 100644
index 0000000000..d6102baf8d
--- /dev/null
+++ b/recipes/geode-drivers/geode-modules.inc
@@ -0,0 +1,26 @@
+# FIXME, consider using kernel staging directory instead of KERNEL_SOURCE which is
+# located in the work directory. see module.bbclass
+
+# Linux kernel modules OE build files for the AMD Geode GX5535/LX5536
+# Copyright (C) 2005-2006, Advanced Micro Devices, Inc. All Rights Reserved
+# Released under the MIT license (see packages/COPYING)
+
+LICENSE = "GPL"
+HOMEPAGE = "http://www.amd.com/embedded"
+
+inherit autotools module-base
+
+export ARCH="i386"
+
+DEPENDS += " virtual/kernel"
+
+S="${WORKDIR}/${AMD_DRIVER_LABEL}"
+
+PACKAGES="${PN}"
+FILES_${PN} = "/lib"
+
+KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}"
+
+EXTRA_OECONF="--with-kernel-path=${KERNEL_SOURCE} --with-module-path=${D}/lib/modules"
+
+SRC_URI = "http://www.amd.com/files/connectivitysolutions/geode/geode_lx/${AMD_DRIVER_LABEL}.tar.gz"