svn commit: trunk/buildroot/package/openssl
Author: ulf
Date: 2008-07-05 00:25:06 -0700 (Sat, 05 Jul 2008) New Revision: 22646
Log:
Fix bug [1899] Add table entry to allow openssl to build for AVR32, disabled softfloat
Added:
trunk/buildroot/package/openssl/openssl-0.9.7m.patch.avr32
Modified:
trunk/buildroot/package/openssl/openssl.mk
Changeset:
Added: trunk/buildroot/package/openssl/openssl-0.9.7m.patch.avr32
===================================================================
buildroot/package/openssl/openssl-0.9.7m.patch.avr32 +11 -0
@@ -0,0 +1,11 @@ +diff -urN openssl-0.9.7m-0rig/Configure openssl-0.9.7m/Configure +--- openssl-0.9.7m-0rig/Configure 2008-07-05 08:59:46.000000000 +0200 ++++ openssl-0.9.7m/Configure 2008-07-05 09:05:10.000000000 +0200 +@@ -396,6 +396,7 @@ + "linux-alpha-ev5","gcc:-DTERMIO -O3 -mcpu=ev5 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${alpha_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux-arm","gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux-armeb","gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", ++"linux-avr32","gcc:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux-freebsd-alpha","gcc:-DTERMIOS -O -fomit-frame-pointer::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux-freebsd-i386", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::-pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux-hppa","gcc:-DB_ENDIAN -DTERMIO -O2 -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
Modified: trunk/buildroot/package/openssl/openssl.mk
===================================================================
buildroot/package/openssl/openssl.mk +3 -0
@@ -31,10 +31,13 @@ $(OPENSSL_DIR)/.unpacked: $(DL_DIR)/$(OPENSSL_SOURCE) $(OPENSSL_CAT) $(DL_DIR)/$(OPENSSL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(OPENSSL_DIR) package/openssl/ openssl\*.patch + toolchain/patch-kernel.sh $(OPENSSL_DIR) package/openssl/ openssl\*.patch.$(ARCH) # sigh... we have to resort to this just to set a gcc flag. # grumble.. and of course make sure to escape any '/' in CFLAGS +ifeq ($(BR2_avr32),) $(SED) 's,/CFLAG=,/CFLAG= $(TARGET_SOFT_FLOAT) ,g' \ $(OPENSSL_DIR)/Configure +endif $(SED) '/CFLAG=/s,/;, $(shell echo '$(TARGET_CFLAGS)' | sed -e 's/\//\\\\\//g')/;,' \ $(OPENSSL_DIR)/Configure $(CONFIG_UPDATE) $(OPENSSL_DIR)
Quoted 13 lines · On Sat, Jul 5, 2008 at 4:25 AM, <[email protected]> wrote:
Author: ulf
Date: 2008-07-05 00:25:06 -0700 (Sat, 05 Jul 2008) New Revision: 22646Log:
Fix bug [1899] Add table entry to allow openssl to build for AVR32, disabled softfloatAdded:
trunk/buildroot/package/openssl/openssl-0.9.7m.patch.avr32Modified:
trunk/buildroot/package/openssl/openssl.mk
(cut)
Quoted 4 lines
Modified:
trunk/buildroot/package/openssl/openssl.mk
===================================================================buildroot/package/openssl/openssl.mk 2008-07-05 07:25:06 UTC (rev 22646) renamed from buildroot/package/openssl/openssl.mk 2008-07-05 06:58:53 UTC (rev 22645) +0
-0
(cut)
buildroot/package/openssl/openssl.mk 2008-07-05 07:25:06 UTC (rev 22646)
Quoted 4 lines
buildroot/package/openssl/openssl.mk 2008-07-05 07:25:06 UTC (rev 22646) renamed from buildroot/package/openssl/openssl.mk 2008-07-05 06:58:53 UTC (rev 22645) +2
-0+ifeq ($(BR2_avr32),) $(SED) 's,/CFLAG=,/CFLAG= $(TARGET_SOFT_FLOAT) ,g' \ $(OPENSSL_DIR)/Configure +endif
Shouldn't this be usefull to all platforms and not just avr32?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thiago A. Corr?a skrev:
Quoted 20 lines · On Sat, Jul 5, 2008 at 4:25 AM, <[email protected]> wrote:
Quoted 13 lines
Author: ulf
Date: 2008-07-05 00:25:06 -0700 (Sat, 05 Jul 2008) New Revision: 22646Log:
Fix bug [1899] Add table entry to allow openssl to build for AVR32, disabled softfloatAdded:
trunk/buildroot/package/openssl/openssl-0.9.7m.patch.avr32Modified:
trunk/buildroot/package/openssl/openssl.mk(cut)
Quoted 4 lines
Modified:
trunk/buildroot/package/openssl/openssl.mk
===================================================================buildroot/package/openssl/openssl.mk 2008-07-05 07:25:06 UTC (rev 22646) renamed from buildroot/package/openssl/openssl.mk 2008-07-05 06:58:53 UTC (rev 22645) +0
-0(cut)
Quoted 6 lines
buildroot/package/openssl/openssl.mk 2008-07-05 07:25:06 UTC (rev 22646)
Quoted 4 lines
buildroot/package/openssl/openssl.mk 2008-07-05 07:25:06 UTC (rev 22646) renamed from buildroot/package/openssl/openssl.mk 2008-07-05 06:58:53 UTC (rev 22645) +2
-0+ifeq ($(BR2_avr32),) $(SED) 's,/CFLAG=,/CFLAG= $(TARGET_SOFT_FLOAT) ,g' \ $(OPENSSL_DIR)/Configure +endifShouldn't this be usefull to all platforms and not just avr32?
Don't think so, but I am not 100% sure.
This patch will *remove* the TARGET_SOFT_FLOAT switch from openssl CFLAGS if compiled for the AVR32,
because the AVR32 gcc does not support the "--with-abi=soft" which gets included as a switch if this is set.
If another architecture is found which does not like the soft-float then I guess it is easy to take that into account.
BR
Ulf
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIb+7RAyRRH5cXxqwRAms6AJ0TCzu7R0BRMaXsfG2sZg3S+SEgBQCdHZZZ GC4ODwDt9x6KO/AIMQ8vKtA=
=rFgy
-----END PGP SIGNATURE-----