projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: make the kernel build auto-clean the build dir like package builds
[librecmc/librecmc.git]
/
include
/
toolchain-build.mk
diff --git
a/include/toolchain-build.mk
b/include/toolchain-build.mk
index b9a94316fce1298ea38aeb86b09b20e807e8d1bf..212923a1e65f263ae9bf2f7513c925154c5702e8 100644
(file)
--- a/
include/toolchain-build.mk
+++ b/
include/toolchain-build.mk
@@
-1,4
+1,4
@@
-#
+#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
@@
-7,7
+7,19
@@
override CONFIG_AUTOREBUILD=
override CONFIG_AUTOREBUILD=
+REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST)
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
include $(INCLUDE_DIR)/host-build.mk
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
include $(INCLUDE_DIR)/host-build.mk
+
+HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
+
+define FixupLibdir
+ if [ -d $(1)/lib64 -a \! -L $(1)/lib64 ]; then \
+ mkdir -p $(1)/lib; \
+ mv $(1)/lib64/* $(1)/lib/; \
+ rm -rf $(1)/lib64; \
+ fi
+ ln -sf lib $(1)/lib64
+endef