aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-14 14:26:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-14 14:26:40 +0000
commit9ca8c73740852aebb1e0b3d10786b6036511fbdb (patch)
tree734609396db9c0a378d40649f29fd8244c2c2d92 /package
parentf480fb301f2d6f8c556061604ddbcc5a57da0be7 (diff)
downloadmaster-187ad058-9ca8c73740852aebb1e0b3d10786b6036511fbdb.tar.gz
master-187ad058-9ca8c73740852aebb1e0b3d10786b6036511fbdb.tar.bz2
master-187ad058-9ca8c73740852aebb1e0b3d10786b6036511fbdb.zip
portability fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5082 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/alsa/Makefile1
-rw-r--r--package/alsa/patches/110-cp_command.patch20
2 files changed, 21 insertions, 0 deletions
diff --git a/package/alsa/Makefile b/package/alsa/Makefile
index 47ad4456bf..2ac0b9433b 100644
--- a/package/alsa/Makefile
+++ b/package/alsa/Makefile
@@ -67,6 +67,7 @@ define Build/Compile
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
c_opts="$(KERNEL_C_OPTS)" \
+ CP="$(CP)" \
all
endef
diff --git a/package/alsa/patches/110-cp_command.patch b/package/alsa/patches/110-cp_command.patch
new file mode 100644
index 0000000000..68499e8837
--- /dev/null
+++ b/package/alsa/patches/110-cp_command.patch
@@ -0,0 +1,20 @@
+diff -ur alsa.old/Makefile alsa.dev/Makefile
+--- alsa.old/Makefile 2006-10-14 07:07:48.000000000 -0700
++++ alsa.dev/Makefile 2006-10-14 07:08:45.000000000 -0700
+@@ -100,6 +100,7 @@
+ SUBDIRS += parisc
+ endif
+ CSUBDIRS += include test utils
++CP = cp -fPR
+
+ KCONFIG_FILES = $(shell find $(SND_TOPDIR) -name Kconfig) $(shell find $(SND_TOPDIR)/alsa-kernel/ -name Kconfig)
+
+@@ -115,7 +116,7 @@
+ if [ ! -d include/sound -a ! -L include/sound ]; then \
+ ln -sf ../alsa-kernel/include include/sound ; \
+ fi
+- cp -auvf include/version.h include/sound/version.h
++ $(CP) include/version.h include/sound/version.h
+
+ utils/mod-deps: utils/mod-deps.c
+ gcc utils/mod-deps.c -o utils/mod-deps