summaryrefslogtreecommitdiff
path: root/packages/module-init-tools/module-init-tools-cross_3.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/module-init-tools/module-init-tools-cross_3.1.bb')
-rw-r--r--packages/module-init-tools/module-init-tools-cross_3.1.bb24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/module-init-tools/module-init-tools-cross_3.1.bb b/packages/module-init-tools/module-init-tools-cross_3.1.bb
index e69de29bb2..21a49171eb 100644
--- a/packages/module-init-tools/module-init-tools-cross_3.1.bb
+++ b/packages/module-init-tools/module-init-tools-cross_3.1.bb
@@ -0,0 +1,24 @@
+LICENSE = GPL
+include module-init-tools_${PV}.bb
+inherit cross
+DEFAULT_PREFERENCE = "0"
+PROVIDES += "virtual/${TARGET_PREFIX}depmod"
+
+PR=r3
+
+# When cross compiling depmod as shipped cannot handle endian
+# differences between host and target, this fixes the problem.
+# It also solves any possible issues with alignment (only likely
+# if cross compiling for a low alignment target - e.g. x86, on
+# a high alignment host - e.g. SPARC).
+SRC_URI += " file://depmod-byteswap.patch;patch=1 "
+
+EXTRA_OECONF_append = " --program-prefix=${TARGET_PREFIX}"
+
+do_stage () {
+ oe_runmake install
+}
+
+do_install () {
+ :
+}