[oe-commits] org.oe.dev hping2 2.0.0rc3: Use the new siteinfo stuff to determine the endianess and

lenehan commit openembedded-commits at lists.openembedded.org
Thu Nov 16 09:03:29 UTC 2006


hping2 2.0.0rc3: Use the new siteinfo stuff to determine the endianess and
set the appropriate flag rather then manually processing the site file
contents to do this.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: bd26f8df1fae527ebdd81d359c1bb25366b2d4c0
ViewMTN: http://monotone.openembedded.org/revision.psp?id=bd26f8df1fae527ebdd81d359c1bb25366b2d4c0
Files:
1
packages/hping/hping2_1.9.9+2.0.0rc3.bb
Diffs:

#
# mt diff -rc04bf3e4558cd8d1f8fb4d40530c838050c03570 -rbd26f8df1fae527ebdd81d359c1bb25366b2d4c0
#
# 
# 
# patch "packages/hping/hping2_1.9.9+2.0.0rc3.bb"
#  from [ee373f3ddc3677dc3ff7fc23df673cbaeb15ea18]
#    to [e380141581462f13850a1dc710e9e45313def20d]
# 
============================================================
--- packages/hping/hping2_1.9.9+2.0.0rc3.bb	ee373f3ddc3677dc3ff7fc23df673cbaeb15ea18
+++ packages/hping/hping2_1.9.9+2.0.0rc3.bb	e380141581462f13850a1dc710e9e45313def20d
@@ -7,12 +7,12 @@ LICENSE = "GPL"
 HOMEPAGE = "http://www.hping.org/"
 SECTION = "console/network"
 LICENSE = "GPL"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://www.hping.org/hping2.0.0-rc3.tar.gz \
 	   file://hping2_debian.patch;patch=1 \
 	   file://hping2_configure.patch;patch=1"
-S="${WORKDIR}/hping2-rc3"
+S = "${WORKDIR}/hping2-rc3"
 
 #
 # We've patched configure to accept byte order and ostype as env
@@ -21,16 +21,8 @@ do_configure() {
 # NOTE: The configure script is not an autoconf script.
 #
 do_configure() {
-	# endianness fun.. inspired by openssl.inc
-	. ${CONFIG_SITE}
-	BYTEORDER="UNKNOWN"
-	if [ "x$ac_cv_c_bigendian" = "xyes" -o "x$ac_cv_c_littleendian" = "xno" ]; then
-	    BYTEORDER="__BIG_ENDIAN_BITFIELD"
-	elif [ "x$ac_cv_c_littleendian" = "xyes" -o "x$ac_cv_c_bigendian" = "xno" ]; then
-	    BYTEORDER="__LITTLE_ENDIAN_BITFIELD"
-	else
-	    oefatal do_configure cannot determine endianess
-	fi
+	# Additional flag based on target endiness (see siteinfo.bbclass)
+	BYTEORDER="${@base_conditional('SITEINFO_ENDIANESS', 'le', '__LITTLE_ENDIAN_BITFIELD', '__BIG_ENDIAN_BITFIELD', d)}"
 	oenote Determined byteorder as: $BYTEORDER
 	BYTEORDER="${BYTEORDER}" CONFIGOSTYPE="LINUX" ./configure
 }






More information about the Openembedded-commits mailing list