summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-11 14:21:31 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-11 14:21:31 +0100
commitd65d767c45ebce8001ec1e028fba9d7881b5f847 (patch)
tree93d6a8b9f94efaa754619cc54c4dd46d29ed5036 /package
parentf9c7b800e7bf803b808cdbefd645a6878d0a101e (diff)
parent2e0e960c27afd0218d58157eefc89d5456406035 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package')
-rw-r--r--package/adk-test-tools/Makefile28
-rwxr-xr-xpackage/adk-test-tools/files/test.init11
-rwxr-xr-xpackage/adk-test-tools/src/qmp4
-rwxr-xr-xpackage/adk-test-tools/src/quit2
-rw-r--r--package/apr-util/Makefile6
-rw-r--r--package/apr/Makefile8
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/src/etc/fstab1
-rw-r--r--package/base-files/src/etc/group9
-rw-r--r--package/base-files/src/etc/init.d/boot3
-rw-r--r--package/base-files/src/etc/init.d/fs69
-rwxr-xr-xpackage/base-files/src/etc/init.d/rcS4
-rw-r--r--package/base-files/src/etc/inittab4
-rw-r--r--package/bcm2835-vc/Makefile8
-rw-r--r--package/boost/Makefile2
-rw-r--r--package/busybox/Makefile2
-rw-r--r--package/busybox/files/syslog.init8
-rw-r--r--package/classpath/Makefile4
-rw-r--r--package/conntrack-tools/Makefile2
-rw-r--r--package/corosync/Makefile4
-rw-r--r--package/dbus/Makefile4
-rw-r--r--package/drbd/Makefile2
-rw-r--r--package/dropbear/Makefile2
-rw-r--r--package/e2fsprogs/Makefile2
-rw-r--r--package/font-util/Makefile4
-rw-r--r--package/gdb/Makefile4
-rw-r--r--package/hostapd/Makefile2
-rw-r--r--package/ipvsadm/Makefile2
-rw-r--r--package/libmicrohttpd/Makefile2
-rw-r--r--package/librpcsecgss/Makefile2
-rw-r--r--package/lsof/Makefile2
-rw-r--r--package/musl/Makefile6
-rw-r--r--package/omxplayer/Makefile14
-rw-r--r--package/openjdk7/Makefile6
-rw-r--r--package/openssh/Makefile2
-rw-r--r--package/openssl/Makefile4
-rw-r--r--package/orbit2/Makefile4
-rw-r--r--package/pacemaker-mgmt/Makefile6
-rw-r--r--package/postfix/Makefile2
-rw-r--r--package/pycurl/Makefile2
-rw-r--r--package/ruby-ldap/Makefile12
-rw-r--r--package/snort/Makefile2
-rw-r--r--package/strace/patches/patch-process_c23
-rw-r--r--package/strace/patches/patch-util_c12
-rw-r--r--package/tinyxml/Makefile2
-rw-r--r--package/util-linux/Makefile2
-rw-r--r--package/watchdog/Makefile2
-rw-r--r--package/wget/Makefile2
-rw-r--r--package/wpa_supplicant/Makefile2
-rw-r--r--package/xbmc/Makefile10
-rw-r--r--package/xcb-proto/Makefile6
-rw-r--r--package/xinetd/Makefile2
52 files changed, 241 insertions, 91 deletions
diff --git a/package/adk-test-tools/Makefile b/package/adk-test-tools/Makefile
new file mode 100644
index 000000000..bc2624fe9
--- /dev/null
+++ b/package/adk-test-tools/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= adk-test-tools
+PKG_VERSION:= 0.1
+PKG_RELEASE:= 1
+PKG_DESCR:= helper tools and scripts for adk-test-framework
+PKG_SECTION:= misc
+PKG_URL:= http://openadk.org/
+
+NO_DISTFILES:= 1
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,ADK_TEST_TOOLS,adk-test-tools,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+BUILD_STYLE:= manual
+INSTALL_STYLE:= manual
+
+adk-test-tools-install:
+ $(INSTALL_DIR) $(IDIR_ADK_TEST_TOOLS)/usr/bin
+ $(INSTALL_BIN) $(WRKBUILD)/{qmp,quit} \
+ $(IDIR_ADK_TEST_TOOLS)/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/adk-test-tools/files/test.init b/package/adk-test-tools/files/test.init
new file mode 100755
index 000000000..81095fa39
--- /dev/null
+++ b/package/adk-test-tools/files/test.init
@@ -0,0 +1,11 @@
+#!/bin/sh
+#PKG adk-test-tools
+#INIT 90
+[[ $1 = autostart ]] || exit 0
+echo "Starting test script ..."
+if [ -x /run.sh ];then
+ exec /run.sh
+else
+ echo "no run.sh found"
+fi
+quit
diff --git a/package/adk-test-tools/src/qmp b/package/adk-test-tools/src/qmp
new file mode 100755
index 000000000..8f9912222
--- /dev/null
+++ b/package/adk-test-tools/src/qmp
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo '{ "execute": "qmp_capabilities" }'
+sleep 1
+echo '{ "execute": "quit" }'
diff --git a/package/adk-test-tools/src/quit b/package/adk-test-tools/src/quit
new file mode 100755
index 000000000..a625553e2
--- /dev/null
+++ b/package/adk-test-tools/src/quit
@@ -0,0 +1,2 @@
+#!/bin/sh
+socat exec:/usr/bin/qmp tcp:10.0.2.2:4444
diff --git a/package/apr-util/Makefile b/package/apr-util/Makefile
index 3df9a52bf..8cb3f1f37 100644
--- a/package/apr-util/Makefile
+++ b/package/apr-util/Makefile
@@ -20,10 +20,10 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,APR_UTIL,apr-util,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
CONFIGURE_ARGS+= --without-berkeley-db \
- --with-apr=${STAGING_DIR}/usr \
+ --with-apr=${STAGING_TARGET_DIR}/usr \
--with-expat=${STAGING_TARGET_DIR}/usr
-XAKE_FLAGS+= apr_builddir=${STAGING_DIR}/usr/share/build-1 \
- apr_builders=${STAGING_DIR}/usr/share/build-1
+XAKE_FLAGS+= apr_builddir=${STAGING_TARGET_DIR}/usr/share/build-1 \
+ apr_builders=${STAGING_TARGET_DIR}/usr/share/build-1
apr-util-install:
${INSTALL_DIR} ${IDIR_APR_UTIL}/usr/lib
diff --git a/package/apr/Makefile b/package/apr/Makefile
index ba53c9c92..3a6524c58 100644
--- a/package/apr/Makefile
+++ b/package/apr/Makefile
@@ -42,15 +42,15 @@ endif
pre-build:
# we need to patch paths to get apr-util compiling
- $(SED) "s,\(^installbuilddir=\"\)\(.*\),\1${STAGING_DIR}\2," \
+ $(SED) "s,\(^installbuilddir=\"\)\(.*\),\1${STAGING_TARGET_DIR}\2," \
${WRKBUILD}/apr-1-config
- $(SED) "s,\(^datadir=\"\)\(.*\),\1${STAGING_DIR}\2," \
+ $(SED) "s,\(^datadir=\"\)\(.*\),\1${STAGING_TARGET_DIR}\2," \
${WRKBUILD}/apr-1-config
apr-install:
${INSTALL_DIR} ${IDIR_APR}/usr/lib
${CP} ${WRKINST}/usr/lib/libapr-1.so* ${IDIR_APR}/usr/lib/
- ${INSTALL_DIR} ${STAGING_DIR}/usr/share/build-1
- ${CP} ${WRKINST}/usr/share/build-1/* ${STAGING_DIR}/usr/share/build-1/
+ ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/build-1
+ ${CP} ${WRKINST}/usr/share/build-1/* ${STAGING_TARGET_DIR}/usr/share/build-1/
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index a298d108b..f325d2210 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.0
-PKG_RELEASE:= 67
+PKG_RELEASE:= 69
PKG_SECTION:= base
PKG_DESCR:= basic files and scripts
PKG_BUILDDEP:= pkgconf-host file-host
diff --git a/package/base-files/src/etc/fstab b/package/base-files/src/etc/fstab
index fafa1d56e..5c09c2510 100644
--- a/package/base-files/src/etc/fstab
+++ b/package/base-files/src/etc/fstab
@@ -1,7 +1,6 @@
# /etc/fstab: static file system information.
#
# <file system> <mount pt> <type> <options> <dump> <pass>
-#/dev/root / ext2 rw,noauto 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
diff --git a/package/base-files/src/etc/group b/package/base-files/src/etc/group
index bbf6c0603..51d78238c 100644
--- a/package/base-files/src/etc/group
+++ b/package/base-files/src/etc/group
@@ -1,4 +1,9 @@
root:x:0:
-video:x:1:
-audio:x:2:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+video:x:6:
+audio:x:7:
nogroup:x:65534:
diff --git a/package/base-files/src/etc/init.d/boot b/package/base-files/src/etc/init.d/boot
index b859d1d89..fc2f79ac2 100644
--- a/package/base-files/src/etc/init.d/boot
+++ b/package/base-files/src/etc/init.d/boot
@@ -4,9 +4,6 @@
. /etc/functions.sh
-# disable kernel messages
-echo 0 > /proc/sys/kernel/printk
-
# remount /dev with smaller size
mount -o remount,nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
diff --git a/package/base-files/src/etc/init.d/fs b/package/base-files/src/etc/init.d/fs
new file mode 100644
index 000000000..f79d9348d
--- /dev/null
+++ b/package/base-files/src/etc/init.d/fs
@@ -0,0 +1,69 @@
+#!/bin/sh
+#INIT 60
+[[ $1 = autostart ]] || exit 0
+
+# activate swap
+[ -x /sbin/swapon ] && { swapon -a; }
+
+# activate any logical volumes
+[ -x /usr/sbin/lvm ] && { lvm vgscan; lvm vgchange -ay; }
+
+# filesystem checks
+[ -x /sbin/fsck.ext2 ] && {
+ for i in $(grep ext2 /etc/fstab|awk '{ print $1}');do fsck.ext2 $i;done;
+}
+[ -x /sbin/fsck.ext3 ] && {
+ for i in $(grep ext3 /etc/fstab|awk '{ print $1}');do fsck.ext3 $i;done;
+}
+[ -x /sbin/fsck.ext4 ] && {
+ for i in $(grep ext4 /etc/fstab|awk '{ print $1}');do fsck.ext4 $i;done;
+}
+[ -x /sbin/fsck.xfs ] && {
+ for i in $(grep xfs /etc/fstab|awk '{ print $1}');do xfs_repair $i;done;
+}
+# local filesystems
+grep ext2 /proc/filesystems >/dev/null 2>&1
+if [ $? -eq 0 ];then
+ grep ext2 /etc/fstab >/dev/null 2>&1
+ if [ $? -eq 0 ];then
+ mount -a -t ext2
+ fi
+fi
+grep ext3 /proc/filesystems >/dev/null 2>&1
+if [ $? -eq 0 ];then
+ grep ext3 /etc/fstab >/dev/null 2>&1
+ if [ $? -eq 0 ];then
+ mount -a -t ext3
+ fi
+fi
+grep ext4 /proc/filesystems >/dev/null 2>&1
+if [ $? -eq 0 ];then
+ grep ext4 /etc/fstab >/dev/null 2>&1
+ if [ $? -eq 0 ];then
+ mount -a -t ext4
+ fi
+fi
+grep xfs /proc/filesystems >/dev/null 2>&1
+if [ $? -eq 0 ];then
+ grep xfs /etc/fstab >/dev/null 2>&1
+ if [ $? -eq 0 ];then
+ mount -a -t xfs
+ fi
+fi
+
+# mount net filesystems (nfs/cifs)
+grep nfs /proc/filesystems >/dev/null 2>&1
+if [ $? -eq 0 ];then
+ grep nfs /etc/fstab >/dev/null 2>&1
+ if [ $? -eq 0 ];then
+ mount -a -t nfs
+ fi
+fi
+grep cifs /proc/filesystems >/dev/null 2>&1
+if [ $? -eq 0 ];then
+ grep cifs /etc/fstab >/dev/null 2>&1
+ if [ $? -eq 0 ];then
+ mount -a -t cifs
+ fi
+fi
+exit 0
diff --git a/package/base-files/src/etc/init.d/rcS b/package/base-files/src/etc/init.d/rcS
index d34cce6e9..9daa8f5cd 100755
--- a/package/base-files/src/etc/init.d/rcS
+++ b/package/base-files/src/etc/init.d/rcS
@@ -1,4 +1,8 @@
#!/bin/sh
+# disable kernel messages
+if [ -f /proc/sys/kernel/printk ];then
+ echo 0 > /proc/sys/kernel/printk
+fi
echo "System initialization ..."
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
ln -s /proc/self/fd/2 /dev/stderr
diff --git a/package/base-files/src/etc/inittab b/package/base-files/src/etc/inittab
index eb00b00ef..f6183798e 100644
--- a/package/base-files/src/etc/inittab
+++ b/package/base-files/src/etc/inittab
@@ -1,7 +1,9 @@
null::sysinit:/bin/mount -t proc proc /proc
+null::sysinit:/bin/mount -t sysfs sys /sys
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mkdir -p /dev/shm
-null::sysinit:/bin/mount -a
+null::sysinit:/bin/mount -a -t devpts
+null::sysinit:/bin/mount -a -t tmpfs
::sysinit:/etc/init.d/rcS
::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
diff --git a/package/bcm2835-vc/Makefile b/package/bcm2835-vc/Makefile
index e19ddcc9c..e6405bf38 100644
--- a/package/bcm2835-vc/Makefile
+++ b/package/bcm2835-vc/Makefile
@@ -31,9 +31,9 @@ bcm2835-vc-install:
$(CP) ${WRKINST}/opt/vc/bin/* ${IDIR_BCM2835_VC}/opt/vc/bin
# required for xbmc
(cd ${IDIR_BCM2835_VC}/opt/vc/lib && ln -sf libEGL.so libEGL.so.1)
- -rm -rf ${STAGING_DIR}/opt/vc
- mkdir -p ${STAGING_DIR}/opt/vc
- ${CP} ${WRKINST}/opt/vc/lib ${STAGING_DIR}/opt/vc
- ${CP} ${WRKINST}/opt/vc/include ${STAGING_DIR}/opt/vc
+ -rm -rf ${STAGING_TARGET_DIR}/opt/vc
+ mkdir -p ${STAGING_TARGET_DIR}/opt/vc
+ ${CP} ${WRKINST}/opt/vc/lib ${STAGING_TARGET_DIR}/opt/vc
+ ${CP} ${WRKINST}/opt/vc/include ${STAGING_TARGET_DIR}/opt/vc
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/boost/Makefile b/package/boost/Makefile
index 2951c1e8c..a2a92df00 100644
--- a/package/boost/Makefile
+++ b/package/boost/Makefile
@@ -57,7 +57,7 @@ CONFIGURE_ARGS += \
CONFIGURE_ARGS+=--without-locale
ifneq (${ADK_PACKAGE_BOOST_IOSTREAMS},)
- CONFIGURE_ARGS += -sNO_BZIP2=1 -sZLIB_INCLUDE=${STAGING_DIR}/usr/include -sZLIB_LIBPATH=${STAGING_DIR}/usr/lib
+ CONFIGURE_ARGS += -sNO_BZIP2=1 -sZLIB_INCLUDE=${STAGING_TARGET_DIR}/usr/include -sZLIB_LIBPATH=${STAGING_TARGET_DIR}/usr/lib
else
CONFIGURE_ARGS += --without-iostreams
endif
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 1fe63ff0a..c1923708e 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= busybox
PKG_VERSION:= 1.21.1
-PKG_RELEASE:= 4
+PKG_RELEASE:= 5
PKG_MD5SUM:= 795394f83903b5eec6567d51eebb417e
PKG_DESCR:= core utilities for embedded systems
PKG_SECTION:= base
diff --git a/package/busybox/files/syslog.init b/package/busybox/files/syslog.init
index 7a84815a6..7a85430ca 100644
--- a/package/busybox/files/syslog.init
+++ b/package/busybox/files/syslog.init
@@ -11,10 +11,14 @@ autostart)
;;
start)
/sbin/syslogd $syslogd_flags
- /sbin/klogd
+ if [ -f /proc/sys/kernel/printk ];then
+ /sbin/klogd
+ fi
;;
stop)
- kill $(pgrep -f /sbin/klogd)
+ if [ -f /proc/sys/kernel/printk ];then
+ kill $(pgrep -f /sbin/klogd)
+ fi
kill $(pgrep -f /sbin/syslogd)
;;
restart)
diff --git a/package/classpath/Makefile b/package/classpath/Makefile
index 3d2166c60..dd983288e 100644
--- a/package/classpath/Makefile
+++ b/package/classpath/Makefile
@@ -44,9 +44,9 @@ classpath-install:
$(CP) $(WRKINST)/usr/lib/classpath/lib*so.* \
$(IDIR_CLASSPATH)/usr/lib/classpath
# install to staging directory
- $(INSTALL_DIR) $(STAGING_DIR)/usr/share/classpath
+ $(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/share/classpath
$(CP) $(WRKINST)/usr/share/classpath/glibj.zip \
- $(STAGING_DIR)/usr/share/classpath
+ $(STAGING_TARGET_DIR)/usr/share/classpath
include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/conntrack-tools/Makefile b/package/conntrack-tools/Makefile
index 89bb7b895..1341e8c5b 100644
--- a/package/conntrack-tools/Makefile
+++ b/package/conntrack-tools/Makefile
@@ -20,7 +20,7 @@ DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include $(TOPDIR)/mk/package.mk
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/tirpc
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
$(eval $(call PKG_template,CONNTRACK_TOOLS,conntrack-tools,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/corosync/Makefile b/package/corosync/Makefile
index 633d32884..efb99a11a 100644
--- a/package/corosync/Makefile
+++ b/package/corosync/Makefile
@@ -23,8 +23,8 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,COROSYNC,corosync,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
XAKE_FLAGS+= GCC_HONOUR_COPTS=s
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/nss \
- -I$(STAGING_DIR)/usr/include/nspr
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/nss \
+ -I$(STAGING_TARGET_DIR)/usr/include/nspr
TARGET_LDFLAGS+= -lssl3 -lsmime3 -lnss3 -lnssutil3
CONFIGURE_ENV+= ac_cv_func_fnmatch_works=yes
diff --git a/package/dbus/Makefile b/package/dbus/Makefile
index 31596f56d..6a84890dd 100644
--- a/package/dbus/Makefile
+++ b/package/dbus/Makefile
@@ -47,9 +47,9 @@ CONFIGURE_ARGS+= --disable-tests \
CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
pre-install:
- ${INSTALL_DIR} $(STAGING_DIR)/usr/include/dbus-1.0/dbus
+ ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
$(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
- $(STAGING_DIR)/usr/include/dbus-1.0/dbus
+ $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
libdbus-install:
${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
diff --git a/package/drbd/Makefile b/package/drbd/Makefile
index f7de4f0a0..1e1308b3b 100644
--- a/package/drbd/Makefile
+++ b/package/drbd/Makefile
@@ -18,7 +18,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,DRBD,drbd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-XAKE_FLAGS+= GENETLINK_H=$(STAGING_DIR)/usr/include/linux/genetlink.h
+XAKE_FLAGS+= GENETLINK_H=$(STAGING_TARGET_DIR)/usr/include/linux/genetlink.h
CONFIGURE_ARGS+= --with-distro=generic \
--with-pacemaker \
--without-heartbeat \
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 0e497279f..319c7522f 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -14,7 +14,7 @@ PKG_SITES:= http://matt.ucc.asn.au/dropbear/releases/
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
-PKG_DFLT_DROPBEAR:= y if !ADK_TOOLCHAIN_ONLY
+PKG_DFLT_DROPBEAR:= y if !ADK_TOOLCHAIN_ONLY && !ADK_PKG_TEST
PKG_SUBPKGS:= DROPBEAR DBCONVERT
PKGSD_DBCONVERT:= Utility for converting SSH private keys
diff --git a/package/e2fsprogs/Makefile b/package/e2fsprogs/Makefile
index 4b7342197..391d3475b 100644
--- a/package/e2fsprogs/Makefile
+++ b/package/e2fsprogs/Makefile
@@ -58,7 +58,7 @@ CONFIGURE_ARGS+= --enable-elf-shlibs --disable-rpath \
--disable-defrag
INSTALL_TARGET+= install-libs
TARGET_LDFLAGS+= -lpthread
-TARGET_CFLAGS+= $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include
+TARGET_CFLAGS+= $(TARGET_CPPFLAGS) -I$(STAGING_TARGET_DIR)/usr/include
MAKE_FLAGS+= BUILD_CC="${CC_FOR_BUILD}" \
BUILD_CFLAGS="${CFLAGS_FOR_BUILD}" \
BUILD_LDFLAGS="${LDFLAGS_FOR_BUILD}" \
diff --git a/package/font-util/Makefile b/package/font-util/Makefile
index fb1d6070c..e61808321 100644
--- a/package/font-util/Makefile
+++ b/package/font-util/Makefile
@@ -22,9 +22,9 @@ $(eval $(call PKG_template,FONT_UTIL,font-util,${PKG_VERSION}-${PKG_RELEASE},${P
# calling pkg-config (which we don't provide) in order to
# automatically find the mappings.
post-build:
- ${INSTALL_DIR} ${STAGING_DIR}/usr/share/fonts/X11/util
+ ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/fonts/X11/util
${CP} ${WRKBUILD}/map-* \
- ${STAGING_DIR}/usr/share/fonts/X11/util
+ ${STAGING_TARGET_DIR}/usr/share/fonts/X11/util
font-util-install:
${INSTALL_DIR} ${IDIR_FONT_UTIL}/usr/bin
diff --git a/package/gdb/Makefile b/package/gdb/Makefile
index 8128e8bd5..d8b9a26bd 100644
--- a/package/gdb/Makefile
+++ b/package/gdb/Makefile
@@ -36,13 +36,13 @@ XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
post-extract:
- -mv $(STAGING_DIR)/usr/lib/libiberty.a $(STAGING_DIR)/usr/lib/libiberty.a.bak
+ -mv $(STAGING_TARGET_DIR)/usr/lib/libiberty.a $(STAGING_TARGET_DIR)/usr/lib/libiberty.a.bak
gdb-install:
${INSTALL_DIR} ${IDIR_GDB}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/gdb ${IDIR_GDB}/usr/bin/
# shipped libbfd conflicts with system wide one
rm -f ${WRKINST}/usr/lib/libbfd*
- -mv $(STAGING_DIR)/usr/lib/libiberty.a.bak $(STAGING_DIR)/usr/lib/libiberty.a
+ -mv $(STAGING_TARGET_DIR)/usr/lib/libiberty.a.bak $(STAGING_TARGET_DIR)/usr/lib/libiberty.a
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile
index d6373de34..0b8d3aa7a 100644
--- a/package/hostapd/Makefile
+++ b/package/hostapd/Makefile
@@ -34,7 +34,7 @@ $(eval $(call PKG_template,HOSTAPD_UTILS,hostapd-utils,${PKG_VERSION}-${PKG_RELE
CONFIG_STYLE:= manual
INSTALL_STYLE:= manual
-TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/libnl3
+TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3
do-configure:
${CP} ./files/hostapd.config ${WRKBUILD}/.config
diff --git a/package/ipvsadm/Makefile b/package/ipvsadm/Makefile
index 1f992de47..2e5d63745 100644
--- a/package/ipvsadm/Makefile
+++ b/package/ipvsadm/Makefile
@@ -17,7 +17,7 @@ PKG_NOPARALLEL:= 1
include $(TOPDIR)/mk/package.mk
-TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/libnl3 -fPIC -DHAVE_NL=0
+TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3 -fPIC -DHAVE_NL=0
CONFIG_STYLE:= manual
XAKE_FLAGS+= HAVE_NL=0
diff --git a/package/libmicrohttpd/Makefile b/package/libmicrohttpd/Makefile
index 558264ce6..58a47af58 100644
--- a/package/libmicrohttpd/Makefile
+++ b/package/libmicrohttpd/Makefile
@@ -19,7 +19,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBMICROHTTPD,libmicrohttpd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-CONFIGURE_ARGS+= --with-libgcrypt-prefix=$(STAGING_DIR)/usr
+CONFIGURE_ARGS+= --with-libgcrypt-prefix=$(STAGING_TARGET_DIR)/usr
libmicrohttpd-install:
$(INSTALL_DIR) $(IDIR_LIBMICROHTTPD)/usr/lib
diff --git a/package/librpcsecgss/Makefile b/package/librpcsecgss/Makefile
index 511f62b69..5cd8ea8bc 100644
--- a/package/librpcsecgss/Makefile
+++ b/package/librpcsecgss/Makefile
@@ -21,7 +21,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBRPCSECGSS,librpcsecgss,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
AUTOTOOL_STYLE:= autoreconf
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/tirpc
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
TARGET_LDFLAGS+= -ltirpc
librpcsecgss-install:
diff --git a/package/lsof/Makefile b/package/lsof/Makefile
index 6415703fc..478d63a17 100644
--- a/package/lsof/Makefile
+++ b/package/lsof/Makefile
@@ -27,7 +27,7 @@ $(eval $(call PKG_template,LSOF,lsof,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS
CONFIG_STYLE:= minimal
CONFIGURE_PROG:= Configure
CONFIGURE_ARGS:= -n linux
-XAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS} -I$(STAGING_DIR)/usr/include/tirpc'
+XAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS} -I$(STAGING_TARGET_DIR)/usr/include/tirpc'
XAKE_FLAGS+= CFGL='${TARGET_LDFLAGS} -L./lib -llsof -ltirpc'
INSTALL_STYLE:= manual
diff --git a/package/musl/Makefile b/package/musl/Makefile
index 3341c83a8..efb5404cb 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -55,13 +55,13 @@ endif
# do nothing, musl is already build in toolchain directory
do-install:
- ${INSTALL_DIR} $(IDIR_MUSL)/usr/bin
+ ${INSTALL_DIR} $(IDIR_MUSL)/bin
${INSTALL_DIR} $(IDIR_MUSL)/$(ADK_TARGET_LIBC_PATH)
$(CP) $(STAGING_TARGET_DIR)/usr/lib/libc.so $(IDIR_MUSL)/$(ADK_TARGET_LIBC_PATH)
(cd $(IDIR_MUSL)/$(ADK_TARGET_LIBC_PATH) && \
ln -sf libc.so ld-musl-$(MARCH).so.1)
- (cd $(IDIR_MUSL)/usr/bin && \
- ln -sf ../../lib/ld-musl-$(MARCH).so.1 ldd)
+ (cd $(IDIR_MUSL)/bin && \
+ ln -sf ../lib/ld-musl-$(MARCH).so.1 ldd)
musl-dev-install:
diff --git a/package/omxplayer/Makefile b/package/omxplayer/Makefile
index 98d09ea39..696f8901b 100644
--- a/package/omxplayer/Makefile
+++ b/package/omxplayer/Makefile
@@ -25,13 +25,13 @@ $(eval $(call PKG_template,OMXPLAYER,omxplayer,$(PKG_VERSION)-${PKG_RELEASE},${P
CONFIG_STYLE:= manual
INSTALL_STYLE:= manual
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/boost-1_55 \
- -I$(STAGING_DIR)/usr/include/freetype2 \
- -I$(STAGING_DIR)/usr/include/dbus-1.0 \
- -I$(STAGING_DIR)/opt/vc/include \
- -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
- -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
-TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/boost-1_55 \
+ -I$(STAGING_TARGET_DIR)/usr/include/freetype2 \
+ -I$(STAGING_TARGET_DIR)/usr/include/dbus-1.0 \
+ -I$(STAGING_TARGET_DIR)/opt/vc/include \
+ -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
+ -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
+TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib
omxplayer-install:
$(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/bin
diff --git a/package/openjdk7/Makefile b/package/openjdk7/Makefile
index b86680a7b..8376e715a 100644
--- a/package/openjdk7/Makefile
+++ b/package/openjdk7/Makefile
@@ -89,9 +89,9 @@ CONFIGURE_ARGS+= --disable-bootstrap
CONFIGURE_ENV+= LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib
MAKE_ENV+= ALT_COMPILER_PATH=$(STAGING_HOST_DIR)/$(GNU_TARGET_NAME)/bin \
- ALT_OPENWIN_HOME=$(STAGING_DIR)/usr/ \
- ALT_CUPS_HEADERS_PATH=$(STAGING_DIR)/usr/include/ \
- ALT_FREETYPE_HEADERS_PATH=$(STAGING_DIR)/usr/include/ \
+ ALT_OPENWIN_HOME=$(STAGING_TARGET_DIR)/usr/ \
+ ALT_CUPS_HEADERS_PATH=$(STAGING_TARGET_DIR)/usr/include/ \
+ ALT_FREETYPE_HEADERS_PATH=$(STAGING_TARGET_DIR)/usr/include/ \
OTHER_CFLAGS='$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)' \
OTHER_CXXFLAGS='$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)' \
OTHER_LDFLAGS='$(TARGET_LDFLAGS)' \
diff --git a/package/openssh/Makefile b/package/openssh/Makefile
index a56ee80de..409e63c0a 100644
--- a/package/openssh/Makefile
+++ b/package/openssh/Makefile
@@ -47,7 +47,7 @@ CONFIGURE_ARGS+= --with-kerberos5="${STAGING_TARGET_DIR}/usr"
endif
ifeq ($(ADK_PACKAGE_OPENSSH_WITH_HEIMDAL),y)
CONFIGURE_ARGS+= --with-kerberos5="${STAGING_TARGET_DIR}/usr"
-TARGET_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/heimdal -Wl,-rpath -Wl,/usr/lib/heimdal
+TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/usr/lib/heimdal -Wl,-rpath -Wl,/usr/lib/heimdal
endif
ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
diff --git a/package/openssl/Makefile b/package/openssl/Makefile
index 027a74611..17ec4771e 100644
--- a/package/openssl/Makefile
+++ b/package/openssl/Makefile
@@ -57,8 +57,8 @@ CONFIG:= linux-embedded
endif
post-extract:
- -mkdir -p $(STAGING_DIR)/usr/include/crypto
- cp ./files/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
+ -mkdir -p $(STAGING_TARGET_DIR)/usr/include/crypto
+ cp ./files/cryptodev.h $(STAGING_TARGET_DIR)/usr/include/crypto/
do-configure:
(cd $(WRKBUILD); \
diff --git a/package/orbit2/Makefile b/package/orbit2/Makefile
index 46da045d1..4f656ea59 100644
--- a/package/orbit2/Makefile
+++ b/package/orbit2/Makefile
@@ -41,8 +41,8 @@ orbit2-install:
$(INSTALL_DIR) $(IDIR_ORBIT2)/usr/lib
$(INSTALL_BIN) $(WRKINST)/usr/lib/libORBit*.so* \
$(IDIR_ORBIT2)/usr/lib
- $(INSTALL_DIR) $(STAGING_DIR)/usr/bin
+ $(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/bin
$(CP) $(WRKINST)/usr/bin/orbit-idl-2 \
- $(STAGING_DIR)/usr/bin
+ $(STAGING_TARGET_DIR)/usr/bin
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/pacemaker-mgmt/Makefile b/package/pacemaker-mgmt/Makefile
index 4fae950ca..a4959fe06 100644
--- a/package/pacemaker-mgmt/Makefile
+++ b/package/pacemaker-mgmt/Makefile
@@ -27,9 +27,9 @@ CONFIGURE_ARGS+= --with-initdir=/etc/init.d \
--with-ocf-root=/usr/lib/ocf \
--without-ais-support \
--disable-fatal-warnings
-TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/python2.7 \
- -I$(STAGING_DIR)/usr/include/pacemaker \
- -I$(STAGING_DIR)/usr/include/heartbeat
+TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/python2.7 \
+ -I$(STAGING_TARGET_DIR)/usr/include/pacemaker \
+ -I$(STAGING_TARGET_DIR)/usr/include/heartbeat
pacemaker-mgmt-install:
$(INSTALL_DIR) $(IDIR_PACEMAKER_MGMT)/usr/lib
diff --git a/package/postfix/Makefile b/package/postfix/Makefile
index 7e27207c4..e95cc4c9c 100644
--- a/package/postfix/Makefile
+++ b/package/postfix/Makefile
@@ -25,7 +25,7 @@ ALL_TARGET:=
INSTALL_STYLE:= manual
do-configure:
- (cd $(WRKBUILD) && make -f Makefile.init makefiles "CCARGS=-DNO_PCRE -DNO_NIS -DNO_DB -DHAS_CDB -I$(STAGING_DIR)/usr/include" "AUXLIBS=$(STAGING_DIR)/usr/lib/libcdb.a")
+ (cd $(WRKBUILD) && make -f Makefile.init makefiles "CCARGS=-DNO_PCRE -DNO_NIS -DNO_DB -DHAS_CDB -I$(STAGING_TARGET_DIR)/usr/include" "AUXLIBS=$(STAGING_TARGET_DIR)/usr/lib/libcdb.a")
postfix-install:
$(INSTALL_DIR) $(IDIR_POSTFIX)/etc/postfix
diff --git a/package/pycurl/Makefile b/package/pycurl/Makefile
index 899bb3ddb..827693423 100644
--- a/package/pycurl/Makefile
+++ b/package/pycurl/Makefile
@@ -25,7 +25,7 @@ INSTALL_STYLE:= manual
XAKE_FLAGS+= GCC_HONOUR_COPTS=s
TARGET_CFLAGS+= -fPIC
MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
-CURL_CONFIG:= $(STAGING_DIR)/usr/bin/curl-config
+CURL_CONFIG:= $(STAGING_TARGET_DIR)/usr/bin/curl-config
include $(TOPDIR)/mk/python.mk
diff --git a/package/ruby-ldap/Makefile b/package/ruby-ldap/Makefile
index 4a332b32e..bb6fc15a6 100644
--- a/package/ruby-ldap/Makefile
+++ b/package/ruby-ldap/Makefile
@@ -26,19 +26,19 @@ CONFIG_STYLE:= manual
FAKE_FLAGS+= DESTDIR="/"
do-configure:
- (cd $(WRKBUILD) && $(STAGING_HOST_DIR)/usr/bin/ruby -I$(STAGING_DIR)/usr/lib/ruby/2.0.0/$(CPU_ARCH)-linux/ extconf.rb \
+ (cd $(WRKBUILD) && $(STAGING_HOST_DIR)/usr/bin/ruby -I$(STAGING_TARGET_DIR)/usr/lib/ruby/2.0.0/$(CPU_ARCH)-linux/ extconf.rb \
--with-openldap2 \
--without-libnsl \
- --with-ldap-dir=$(STAGING_DIR)/usr \
- --with-ldap-lib=$(STAGING_DIR)/usr/lib \
- --with-ldap-include=$(STAGING_DIR)/usr/include)
+ --with-ldap-dir=$(STAGING_TARGET_DIR)/usr \
+ --with-ldap-lib=$(STAGING_TARGET_DIR)/usr/lib \
+ --with-ldap-include=$(STAGING_TARGET_DIR)/usr/include)
ruby-ldap-install:
$(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux
$(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
- $(CP) $(STAGING_DIR)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux/ldap.so \
+ $(CP) $(STAGING_TARGET_DIR)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux/ldap.so \
$(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux
- $(CP) $(STAGING_DIR)//usr/lib/ruby/site_ruby/2.0.0/ldap/*.rb \
+ $(CP) $(STAGING_TARGET_DIR)//usr/lib/ruby/site_ruby/2.0.0/ldap/*.rb \
$(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/snort/Makefile b/package/snort/Makefile
index 4427a1297..7fdd18c51 100644
--- a/package/snort/Makefile
+++ b/package/snort/Makefile
@@ -21,7 +21,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,SNORT,snort,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/tirpc
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
TARGET_LDFLAGS+= -ltirpc
CONFIGURE_ARGS+= --disable-static-daq \
--with-libpcap-includes="${STAGING_TARGET_DIR}/usr/include" \
diff --git a/package/strace/patches/patch-process_c b/package/strace/patches/patch-process_c
index a3d71bc9e..1c9ba10e9 100644
--- a/package/strace/patches/patch-process_c
+++ b/package/strace/patches/patch-process_c
@@ -1,5 +1,5 @@
--- strace-4.8.orig/process.c 2013-05-18 00:22:19.000000000 +0200
-+++ strace-4.8/process.c 2014-02-25 20:02:55.000000000 +0100
++++ strace-4.8/process.c 2014-03-07 11:15:51.318966166 +0100
@@ -55,7 +55,7 @@
# endif
#endif
@@ -9,7 +9,7 @@
# undef PTRACE_SYSCALL
# ifdef HAVE_STRUCT_IA64_FPREG
# define ia64_fpreg XXX_ia64_fpreg
-@@ -104,6 +104,10 @@
+@@ -104,6 +104,14 @@
# include <asm/rse.h>
#endif
@@ -17,10 +17,23 @@
+#include <asm/ptrace.h>
+#endif
+
++#ifdef __microblaze__
++#include <asm/ptrace.h>
++#endif
++
#ifdef HAVE_PRCTL
# include <sys/prctl.h>
-@@ -2857,7 +2861,7 @@ sys_sched_setscheduler(struct tcb *tcp)
+@@ -2472,7 +2480,7 @@ const struct xlat struct_user_offsets[]
+ #elif defined(TILE)
+ /* nothing */
+ #elif defined(MICROBLAZE)
+- { sizeof(struct user), "sizeof(struct user)" },
++ /* nothing */
+ #elif defined(AVR32)
+ { uoff(u_tsize), "offsetof(struct user, u_tsize)" },
+ { uoff(u_dsize), "offsetof(struct user, u_dsize)" },
+@@ -2857,7 +2865,7 @@ sys_sched_setscheduler(struct tcb *tcp)
if (umove(tcp, tcp->u_arg[2], &p) < 0)
tprintf(", %#lx", tcp->u_arg[2]);
else
@@ -29,7 +42,7 @@
}
return 0;
}
-@@ -2872,7 +2876,7 @@ sys_sched_getparam(struct tcb *tcp)
+@@ -2872,7 +2880,7 @@ sys_sched_getparam(struct tcb *tcp)
if (umove(tcp, tcp->u_arg[1], &p) < 0)
tprintf("%#lx", tcp->u_arg[1]);
else
@@ -38,7 +51,7 @@
}
return 0;
}
-@@ -2885,7 +2889,7 @@ sys_sched_setparam(struct tcb *tcp)
+@@ -2885,7 +2893,7 @@ sys_sched_setparam(struct tcb *tcp)
if (umove(tcp, tcp->u_arg[1], &p) < 0)
tprintf("%d, %#lx", (int) tcp->u_arg[0], tcp->u_arg[1]);
else
diff --git a/package/strace/patches/patch-util_c b/package/strace/patches/patch-util_c
new file mode 100644
index 000000000..34181a22f
--- /dev/null
+++ b/package/strace/patches/patch-util_c
@@ -0,0 +1,12 @@
+--- strace-4.8.orig/util.c 2013-05-06 20:23:01.000000000 +0200
++++ strace-4.8/util.c 2014-03-07 15:34:01.074036954 +0100
+@@ -55,7 +55,9 @@
+ # ifdef HAVE_STRUCT_PT_ALL_USER_REGS
+ # define pt_all_user_regs XXX_pt_all_user_regs
+ # endif
++#if !defined(SH)
+ # include <linux/ptrace.h>
++#endif
+ # undef ia64_fpreg
+ # undef pt_all_user_regs
+ #endif
diff --git a/package/tinyxml/Makefile b/package/tinyxml/Makefile
index 0af10f763..568cc1071 100644
--- a/package/tinyxml/Makefile
+++ b/package/tinyxml/Makefile
@@ -28,6 +28,6 @@ tinyxml-install:
$(CP) $(WRKBUILD)/libtinyxml*.so* \
$(IDIR_TINYXML)/usr/lib
$(INSTALL_DATA) $(WRKBUILD)/tiny{str,xml}.h \
- $(STAGING_DIR)/usr/include
+ $(STAGING_TARGET_DIR)/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/util-linux/Makefile b/package/util-linux/Makefile
index b449a985e..e2a04670d 100644
--- a/package/util-linux/Makefile
+++ b/package/util-linux/Makefile
@@ -66,7 +66,7 @@ CONFIGURE_ARGS+= --disable-use-tty-group \
--enable-libblkid \
--enable-libmount \
--enable-mount \
- --with-ncurses=$(STAGING_DIR)/usr/include \
+ --with-ncurses=$(STAGING_TARGET_DIR)/usr/include \
--libdir=/usr/lib
FAKE_FLAGS+= INSTALLSUID="install -m 4755"
TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK -ltinfo
diff --git a/package/watchdog/Makefile b/package/watchdog/Makefile
index df586c8c0..a4c6d44a5 100644
--- a/package/watchdog/Makefile
+++ b/package/watchdog/Makefile
@@ -17,7 +17,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,WATCHDOG,watchdog,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/tirpc
+TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
TARGET_LDFLAGS+= -ltirpc
watchdog-install:
diff --git a/package/wget/Makefile b/package/wget/Makefile
index 7abbe7241..9c412c3ea 100644
--- a/package/wget/Makefile
+++ b/package/wget/Makefile
@@ -34,7 +34,7 @@ CONFIGURE_ARGS+= --with-ssl=openssl
endif
ifeq (${ADK_PACKAGE_WGET_WITH_GNUTLS},y)
CONFIGURE_ARGS+= --with-ssl=gnutls \
- --with-libgnutls-prefix="$(STAGING_DIR)/usr"
+ --with-libgnutls-prefix="$(STAGING_TARGET_DIR)/usr"
endif
AUTOTOOL_STYLE:= autoreconf
diff --git a/package/wpa_supplicant/Makefile b/package/wpa_supplicant/Makefile
index 8f6e0efee..e1545e64c 100644
--- a/package/wpa_supplicant/Makefile
+++ b/package/wpa_supplicant/Makefile
@@ -33,7 +33,7 @@ $(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,${PKG_VERSION}-${PKG_RE
CONFIG_STYLE:= manual
INSTALL_STYLE:= manual
-TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/libnl3
+TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3
MAKE_FLAGS+= CPPFLAGS='${TARGET_CPPFLAGS}' \
LDFLAGS='${TARGET_LDFLAGS}' \
diff --git a/package/xbmc/Makefile b/package/xbmc/Makefile
index 282cf88fb..fed181d92 100644
--- a/package/xbmc/Makefile
+++ b/package/xbmc/Makefile
@@ -43,14 +43,14 @@ $(eval $(call PKG_template,XBMC,xbmc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS
XAKE_FLAGS+= V=1 TIXML_USE_STL=1
XAKE_FLAGS+= GCC_HONOUR_COPTS=s
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/boost-1_55 \
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/boost-1_55 \
-DTIXML_USE_STL=1 -DHAS_SIMPLEPM=1
ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/opt/vc/include \
- -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
- -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
-TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib -lkhrn_static
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/opt/vc/include \
+ -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
+ -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
+TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib -lkhrn_static
endif
AUTOTOOL_STYLE:= autoreconf
diff --git a/package/xcb-proto/Makefile b/package/xcb-proto/Makefile
index eca8ab4f5..9e5d2b3b1 100644
--- a/package/xcb-proto/Makefile
+++ b/package/xcb-proto/Makefile
@@ -27,16 +27,16 @@ include $(TOPDIR)/mk/python.mk
HOST_STYLE:= auto
CONFIGURE_ENV+= PYTHON=$(PYTHON)
-CONFIGURE_ARGS+= --datadir=${STAGING_DIR}/usr/share
+CONFIGURE_ARGS+= --datadir=${STAGING_TARGET_DIR}/usr/share
post-build:
${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/xcb
${CP} ${WRKBUILD}/src/*.xml ${STAGING_TARGET_DIR}/usr/share/xcb
xcb-python-install:
- $(INSTALL_DIR) ${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
+ $(INSTALL_DIR) ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
- ${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
+ ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
diff --git a/package/xinetd/Makefile b/package/xinetd/Makefile
index af603f7bb..42e3f7b83 100644
--- a/package/xinetd/Makefile
+++ b/package/xinetd/Makefile
@@ -19,7 +19,7 @@ $(eval $(call PKG_template,XINETD,xinetd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEP
CONFIGURE_ARGS+= --without-libwrap \
--with-loadavg
ALL_TARGET:= build
-TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/tirpc
+TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
TARGET_LDFLAGS+= -ltirpc
xinetd-install: