Browse Source

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 11 years ago
parent
commit
519d88693e

+ 1 - 1
Makefile

@@ -2,7 +2,7 @@
 # material, please see the LICENCE file in the top-level directory.
 
 _UNLIMIT=	__limit=$$(ulimit -dH 2>/dev/null); \
-		test -n "$$__limit" && ulimit -dS $$__limit;
+		test -n "$$__limit" && ulimit -Sd $$__limit;
 
 all: checkreloc .prereq_done
 	@${_UNLIMIT} ${GMAKE_INV} all

+ 4 - 2
mk/kernel-vars.mk

@@ -5,7 +5,8 @@ KERNEL_MAKE_OPTS:=	-C "${LINUX_DIR}" V=1
 ifneq ($(ADK_NATIVE),y)
 KERNEL_MAKE_OPTS+=	CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \
 			CC="$(TARGET_CC)" HOSTCC="${CC_FOR_BUILD}" \
-			HOSTCFLAGS='${CFLAGS_FOR_BUILD}'
+			HOSTCFLAGS='${CFLAGS_FOR_BUILD}' \
+			CONFIG_SHELL='${SHELL}'
 endif
 ifeq (${ADK_TARGET_BROADCOM_MODEL_LINKSYS_WRT54G},y)
 ADK_KCPPFLAGS+=		-DBCM47XX_OVERRIDE_FLASHSIZE=0x400000 \
@@ -23,4 +24,5 @@ ADK_KCPPFLAGS+=		-DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
 			-DBCM47XX_OVERRIDE_CFESIZE=0x40000
 endif
 
-KERNEL_MAKE_ENV+=	KCPPFLAGS='${ADK_KCPPFLAGS}' PATH="$$PATH:${TOOLS_DIR}"
+KERNEL_MAKE_ENV+=	KCPPFLAGS='${ADK_KCPPFLAGS}' \
+			PATH="${TOOLS_DIR}:$$PATH"

+ 10 - 0
package/cryptsetup/patches/patch-lib_libdevmapper_c

@@ -0,0 +1,10 @@
+--- cryptsetup-1.6.3.orig/lib/libdevmapper.c	2013-11-14 08:31:44.000000000 +0100
++++ cryptsetup-1.6.3/lib/libdevmapper.c	2014-01-08 10:15:32.000000000 +0100
+@@ -29,6 +29,7 @@
+ #include <linux/fs.h>
+ #include <uuid/uuid.h>
+ #include <sys/utsname.h>
++#include <sys/stat.h>
+ 
+ #include "internal.h"
+ 

+ 3 - 3
package/cryptsetup/patches/patch-ltmain_sh

@@ -1,6 +1,6 @@
---- cryptsetup-1.3.1.orig/ltmain.sh	2011-04-18 13:06:09.000000000 +0200
-+++ cryptsetup-1.3.1/ltmain.sh	2011-07-18 13:28:01.000000000 +0200
-@@ -5840,7 +5840,7 @@ func_mode_link ()
+--- cryptsetup-1.6.3.orig/ltmain.sh	2013-12-08 18:15:38.000000000 +0100
++++ cryptsetup-1.6.3/ltmain.sh	2014-01-08 01:18:38.000000000 +0100
+@@ -5853,7 +5853,7 @@ func_mode_link ()
        # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
        -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
        -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \

+ 31 - 0
package/firefox/patches/patch-js_src_configure

@@ -0,0 +1,31 @@
+--- mozilla-release.orig/js/src/configure	2013-12-05 17:08:46.000000000 +0100
++++ mozilla-release/js/src/configure	2014-01-07 19:30:38.660353287 +0100
+@@ -8652,28 +8652,6 @@ if test -z "$GNU_CC"; then
+     esac
+ fi
+ 
+-if test "$GNU_CC" -a -n "$DEVELOPER_OPTIONS"; then
+-            if $CC -Wl,--version 2>&1 | grep -q "GNU ld"; then
+-        GOLD=$($CC -print-prog-name=ld.gold)
+-        case "$GOLD" in
+-        /*)
+-            ;;
+-        *)
+-            GOLD=$(which $GOLD)
+-            ;;
+-        esac
+-        if test -n "$GOLD"; then
+-            mkdir -p $_objdir/build/unix/gold
+-            ln -s "$GOLD" $_objdir/build/unix/gold/ld
+-            if $CC -B $_objdir/build/unix/gold -Wl,--version 2>&1 | grep -q "GNU gold"; then
+-                LDFLAGS="$LDFLAGS -B $_objdir/build/unix/gold"
+-            else
+-                rm -rf $_objdir/build/unix/gold
+-            fi
+-        fi
+-    fi
+-fi
+-
+ if test "$GNU_CC"; then
+     if test -z "$DEVELOPER_OPTIONS"; then
+         CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"

+ 10 - 0
package/libXt/patches/patch-util_Makefile_am

@@ -0,0 +1,10 @@
+--- libXt-1.1.3.orig/util/Makefile.am	2012-03-16 06:52:08.000000000 +0100
++++ libXt-1.1.3/util/Makefile.am	2014-01-07 13:22:11.833722316 +0100
+@@ -10,7 +10,6 @@ EXTRA_DIST = \
+ 	StrDefs.ht \
+ 	string.list
+ 
+-AM_CFLAGS = $(XT_CFLAGS)
+ makestrs_SOURCES = makestrs.c
+ 
+ 

+ 2 - 1
package/mc/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		mc
 PKG_VERSION:=		4.7.0.2
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_MD5SUM:=		f48b2c8dd140aeb36f59d16a662f0779
 PKG_DESCR:=		norton commander clone
 PKG_SECTION:=		misc
@@ -19,6 +19,7 @@ include ${TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,MC,mc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
+TARGET_LDFLAGS+=	-ltinfo
 CONFIGURE_ARGS+=	--enable-charset \
 			--disable-extcharset \
 			--disable-background \

+ 13 - 0
toolchain/gcc/patches/4.7.3/openbsd-lto.patch

@@ -0,0 +1,13 @@
+diff -Nur gcc-4.7.3.orig/gcc/config.host gcc-4.7.3/gcc/config.host
+--- gcc-4.7.3.orig/gcc/config.host	Tue Oct 18 08:14:14 2011
++++ gcc-4.7.3/gcc/config.host	Tue Jan  7 04:33:29 2014
+@@ -292,6 +292,9 @@
+     out_host_hook_obj=host-solaris.o
+     host_xmake_file="${host_xmake_file} x-solaris"
+     ;;
++  *-*-openbsd*)
++    host_lto_plugin_soname=liblto_plugin.so.0.0
++    ;;
+   *-*-linux*)
+     out_host_hook_obj=host-linux.o
+     host_xmake_file="${host_xmake_file} x-linux"