projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bpf: add -mcpu=v3 to support 32-bit alu ops
[openwrt/openwrt.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index f1577ad4d143b9ece4536e0e8c0551a8484eb5dd..39ab3ae4a52e5626dd45a3cd53903cebab05e34f 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,10
+1,6
@@
-#
Makefile for OpenWrt
+#
SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2007 OpenWrt.org
#
# Copyright (C) 2007 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
TOPDIR:=${CURDIR}
LC_ALL:=C
TOPDIR:=${CURDIR}
LC_ALL:=C
@@
-18,7
+14,7
@@
$(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt dir
world:
world:
-DISTRO_PKG_CONFIG:=$(shell
command -pv
pkg-config | grep -E '\/usr' | head -n 1)
+DISTRO_PKG_CONFIG:=$(shell
which -a
pkg-config | grep -E '\/usr' | head -n 1)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
ifneq ($(OPENWRT_BUILD),1)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
ifneq ($(OPENWRT_BUILD),1)
@@
-42,7
+38,7
@@
else
include tools/Makefile
include toolchain/Makefile
include tools/Makefile
include toolchain/Makefile
-$(toolchain/stamp-compile): $(tools/stamp-compile)
+$(toolchain/stamp-compile): $(tools/stamp-compile)
$(if $(CONFIG_BUILDBOT),toolchain_rebuild_check)
$(target/stamp-compile): $(toolchain/stamp-compile) $(tools/stamp-compile) $(BUILD_DIR)/.prepared
$(package/stamp-compile): $(target/stamp-compile) $(package/stamp-cleanup)
$(package/stamp-install): $(package/stamp-compile)
$(target/stamp-compile): $(toolchain/stamp-compile) $(tools/stamp-compile) $(BUILD_DIR)/.prepared
$(package/stamp-compile): $(target/stamp-compile) $(package/stamp-cleanup)
$(package/stamp-install): $(package/stamp-compile)
@@
-54,17
+50,26
@@
printdb:
prepare: $(target/stamp-compile)
prepare: $(target/stamp-compile)
-clean: FORCE
+
_
clean: FORCE
rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(BUILD_LOG_DIR) $(TOPDIR)/staging_dir/packages
rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(BUILD_LOG_DIR) $(TOPDIR)/staging_dir/packages
-dirclean: clean
- rm -rf $(STAGING_DIR_HOST) $(STAGING_DIR_HOSTPKG) $(TOOLCHAIN_DIR) $(BUILD_DIR_BASE)/host $(BUILD_DIR_BASE)/hostpkg $(BUILD_DIR_TOOLCHAIN)
+clean: _clean
+ rm -rf $(BUILD_LOG_DIR)
+
+targetclean: _clean
+ rm -rf $(TOOLCHAIN_DIR) $(BUILD_DIR_BASE)/hostpkg $(BUILD_DIR_TOOLCHAIN)
+
+dirclean: targetclean clean
+ rm -rf $(STAGING_DIR_HOST) $(STAGING_DIR_HOSTPKG) $(BUILD_DIR_BASE)/host
rm -rf $(TMP_DIR)
$(MAKE) -C $(TOPDIR)/scripts/config clean
rm -rf $(TMP_DIR)
$(MAKE) -C $(TOPDIR)/scripts/config clean
+toolchain_rebuild_check:
+ $(SCRIPT_DIR)/check-toolchain-clean.sh
+
cacheclean:
ifneq ($(CONFIG_CCACHE),)
cacheclean:
ifneq ($(CONFIG_CCACHE),)
- rm -rf $(CCACHE_DIR)
+ $(STAGING_DIR_HOST)/bin/ccache -C
endif
ifndef DUMP_TARGET_DB
endif
ifndef DUMP_TARGET_DB