2020-09-22 02:48:37 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2015-03-29 07:29:18 +00:00
|
|
|
#
|
2020-09-22 02:48:37 +00:00
|
|
|
# Copyright (C) 2009-2020 OpenWrt.org
|
2009-02-23 23:52:27 +00:00
|
|
|
|
|
|
|
override CONFIG_AUTOREBUILD=
|
2017-01-18 17:00:00 +00:00
|
|
|
override CONFIG_AUTOREMOVE=
|
2009-02-23 23:52:27 +00:00
|
|
|
|
2017-05-03 13:01:03 +00:00
|
|
|
HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR)
|
2009-02-23 23:52:27 +00:00
|
|
|
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2019-01-01 23:34:18 +00:00
|
|
|
include $(INCLUDE_DIR)/hardening.mk
|
2009-08-24 23:22:28 +00:00
|
|
|
|
|
|
|
HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
|
2012-06-30 21:43:59 +00:00
|
|
|
|
|
|
|
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
|