inclue/image.mk: fix package installation for per-device rootfs
[openwrt/staging/chunkeey.git] / include / toolchain-build.mk
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 override CONFIG_AUTOREBUILD=
9 override CONFIG_AUTOREMOVE=
10
11 HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR)
12 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
13
14 include $(INCLUDE_DIR)/host-build.mk
15
16 HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
17
18 define FixupLibdir
19 if [ -d $(1)/lib64 -a \! -L $(1)/lib64 ]; then \
20 mkdir -p $(1)/lib; \
21 mv $(1)/lib64/* $(1)/lib/; \
22 rm -rf $(1)/lib64; \
23 fi
24 ln -sf lib $(1)/lib64
25 endef