util-linux-ng: added || defined(__nios2__)
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Wed, 7 Jul 2010 18:43:22 +0000 (20:43 +0200)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Wed, 7 Jul 2010 18:43:22 +0000 (20:43 +0200)
added a defined for nios2 so it now also compiles for nios2

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
recipes/util-linux-ng/util-linux-ng-2.17/fdiskbsdlabel.h-nios2.patch [new file with mode: 0644]
recipes/util-linux-ng/util-linux-ng_2.17.bb

diff --git a/recipes/util-linux-ng/util-linux-ng-2.17/fdiskbsdlabel.h-nios2.patch b/recipes/util-linux-ng/util-linux-ng-2.17/fdiskbsdlabel.h-nios2.patch
new file mode 100644 (file)
index 0000000..5b5051e
--- /dev/null
@@ -0,0 +1,14 @@
+Index: util-linux-ng-2.17/fdisk/fdiskbsdlabel.h
+===================================================================
+--- util-linux-ng-2.17.orig/fdisk/fdiskbsdlabel.h      2010-07-07 14:13:04.073530165 +0200
++++ util-linux-ng-2.17/fdisk/fdiskbsdlabel.h   2010-07-07 14:13:43.053535150 +0200
+@@ -48,7 +48,8 @@
+ #if defined (i386) || defined (__sparc__) || defined (__arm__) || \
+     defined (__mips__) || defined (__s390__) || defined (__sh__) || \
+-    defined(__x86_64__) || defined (__avr32__) || defined(__cris__)
++    defined(__x86_64__) || defined (__avr32__) || defined(__cris__) || \
++    defined (__nios2__)
+ #define BSD_LABELSECTOR   1
+ #define BSD_LABELOFFSET   0
+ #elif defined (__alpha__) || defined (__powerpc__) || defined (__ia64__) || defined (__hppa__)
index b435211..e906abb 100644 (file)
@@ -1,9 +1,10 @@
 require util-linux-ng.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 SRC_URI += "file://uclibc-compile.patch \
            file://util-linux-ng-replace-siginterrupt.patch \
+           file://fdiskbsdlabel.h-nios2.patch \
            "
 
 # fallocate is glibc 2.10, fallocate64 is glibc 2.11