source: trunk/tools/make/yourfritz-host/yourfritz-host.mk @ 14179

Letzte Änderung dieser Datei seit 14179 war 14179, erstellt von er13 vor 9 Monaten

yourfritz-host:

Dateigröße: 2.1 KB
Zeile 
1YOURFRITZ_HOST_VERSION:=6da1adde2c
2YOURFRITZ_HOST_SOURCE:=yourfritz-$(YOURFRITZ_HOST_VERSION).tar.xz
3YOURFRITZ_HOST_SITE:=git@https://github.com/PeterPawn/YourFritz.git
4
5YOURFRITZ_HOST_MAKE_DIR:=$(TOOLS_DIR)/make/yourfritz-host
6YOURFRITZ_HOST_DIR:=$(TOOLS_SOURCE_DIR)/yourfritz-$(YOURFRITZ_HOST_VERSION)
7
8# AKC stands for AVM_KERNEL_CONFIG
9YOURFRITZ_HOST_AKC_BUILD_DIR:=$(YOURFRITZ_HOST_DIR)/avm_kernel_config
10YOURFRITZ_HOST_AKC_TOOLS:=extract gen
11YOURFRITZ_HOST_AKC_TOOLS_BUILD_DIR:=$(YOURFRITZ_HOST_AKC_TOOLS:%=$(YOURFRITZ_HOST_AKC_BUILD_DIR)/%_avm_kernel_config)
12YOURFRITZ_HOST_AKC_TOOLS_TARGET_DIR:=$(YOURFRITZ_HOST_AKC_TOOLS:%=$(TOOLS_DIR)/avm_kernel_config.%)
13
14yourfritz-host-source: $(DL_DIR)/$(YOURFRITZ_HOST_SOURCE)
15$(DL_DIR)/$(YOURFRITZ_HOST_SOURCE): | $(DL_DIR)
16    $(DL_TOOL) $(DL_DIR) $(YOURFRITZ_HOST_SOURCE) $(YOURFRITZ_HOST_SITE) $(YOURFRITZ_HOST_SOURCE_MD5)
17
18yourfritz-host-unpacked: $(YOURFRITZ_HOST_DIR)/.unpacked
19$(YOURFRITZ_HOST_DIR)/.unpacked: $(DL_DIR)/$(YOURFRITZ_HOST_SOURCE) | $(TOOLS_SOURCE_DIR) $(UNPACK_TARBALL_PREREQUISITES)
20    $(TAR) -C $(TOOLS_SOURCE_DIR) $(VERBOSE) -xf $(DL_DIR)/$(YOURFRITZ_HOST_SOURCE)
21    $(call APPLY_PATCHES,$(YOURFRITZ_HOST_MAKE_DIR)/patches,$(YOURFRITZ_HOST_DIR))
22    touch $@
23
24$(YOURFRITZ_HOST_DIR)/.symlinked: | $(YOURFRITZ_HOST_DIR)/.unpacked
25    @ln -Tsf ../$(YOURFRITZ_HOST_DIR:$(FREETZ_BASE_DIR)/%=%) $(TOOLS_DIR)/yf
26    touch $@
27
28$(YOURFRITZ_HOST_AKC_TOOLS_BUILD_DIR): $(YOURFRITZ_HOST_DIR)/.unpacked $(DTC_LIBFDT_HOST_DIR)/libfdt.a
29    $(MAKE) -f Makefile.freetz -C $(YOURFRITZ_HOST_AKC_BUILD_DIR) \
30        CC="$(TOOLS_CC)" \
31        LIBFDT_DIR=$(DTC_LIBFDT_HOST_DIR) \
32        $(YOURFRITZ_HOST_AKC_TOOLS:%=%_avm_kernel_config)
33    touch -c $@
34
35$(YOURFRITZ_HOST_AKC_TOOLS_TARGET_DIR): $(TOOLS_DIR)/avm_kernel_config.%: $(YOURFRITZ_HOST_AKC_BUILD_DIR)/%_avm_kernel_config
36    $(INSTALL_FILE)
37
38yourfritz-host: $(YOURFRITZ_HOST_DIR)/.symlinked $(YOURFRITZ_HOST_AKC_TOOLS_TARGET_DIR)
39
40yourfritz-host-clean:
41    -$(MAKE) -f Makefile.freetz -C $(YOURFRITZ_HOST_AKC_BUILD_DIR) clean
42
43yourfritz-host-dirclean:
44    $(RM) -r $(YOURFRITZ_HOST_DIR)
45
46yourfritz-host-distclean: yourfritz-host-dirclean
47    $(RM) $(TOOLS_DIR)/yf $(YOURFRITZ_HOST_AKC_TOOLS_TARGET_DIR)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.