Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 351372 Details for
Bug 473748
Making magiclantern with >sys-devel/make-3.81-r2 fails
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Makefile v.1 that fails
Makefile (text/plain), 8.74 KB, created by
Lebedev Roman
on 2013-06-19 12:07:15 UTC
(
hide
)
Description:
Makefile v.1 that fails
Filename:
MIME Type:
Creator:
Lebedev Roman
Created:
2013-06-19 12:07:15 UTC
Size:
8.74 KB
patch
obsolete
>TOP_DIR=$(PWD) > >##include Makefile.setup > ># Generic makefile ># Include default and user-customized options where needed ># If you want to customize them copy Makefile.user.default to Makefile.user keeping only the options that you want to customize > >###include $(TOP_DIR)/Makefile.top > >MAKE=make >RM=rm >MV=mv >MKDIR=mkdir >CP=cp >export BIN_FILES=magiclantern magiclantern.bin autoexec.bin autoexec > >BINARIES_PATH=binaries >LUA_PATH=$(TOP_DIR)/lua >PICOC_DIR=$(TOP_DIR)/picoc >PICOC_PATH=$(PICOC_DIR) >PWD=$(shell pwd) >SRC_DIR=$(TOP_DIR)/src >PLATFORM_PATH=$(TOP_DIR)/platform >BUILDER_DIR=$(TOP_DIR)/../dumper >DOC_DIR=$(TOP_DIR)/doc >CROP_DIR=$(TOP_DIR)/data/cropmks >VRAM_DIR=$(TOP_DIR)/data/vram >SCRIPT_DIR=$(TOP_DIR)/scripts >PLUGINS_DIR=$(TOP_DIR)/plugins >MODULES_DIR=$(TOP_DIR)/modules >BIN_FILES=magiclantern magiclantern.bin autoexec.bin autoexec >CF_CARD_ML_DIR = $(CF_CARD)/ML > >INSTALL_DIR ?= $(CF_CARD) >INSTALL_ML_DIR = $(INSTALL_DIR)/ML >INSTALL_MODULES_DIR = $(INSTALL_ML_DIR)/modules >INSTALL_SETTINGS_DIR= $(INSTALL_ML_DIR)/settings >INSTALL_DATA_DIR= $(INSTALL_ML_DIR)/data >INSTALL_CROPMARKS_DIR= $(INSTALL_ML_DIR)/cropmks >INSTALL_SCRIPTS_DIR= $(INSTALL_ML_DIR)/scripts >INSTALL_DOC_DIR = $(INSTALL_ML_DIR)/doc >INSTALL_LOGS_DIR = $(INSTALL_ML_DIR)/logs >INSTALL_FINISH ?= $(UMOUNT) $(CF_CARD) > >make_loop = +$(foreach entry, $(1), $(MAKE) -C $(entry) $(2);) > ># $1 = root_dir ># $2 = dir-target >define call_make_rule > +$(MAKE) -C $(1)/$(word 1, $(subst _rule_, ,$@)) $(word 2, $(subst _rule_, ,$@)) >endef > >define call_make_rule_ex > +$(MAKE) -C $(2)/$(call $(1), $(word 1, $(subst _rule_, ,$@))) $(word 2, $(subst _rule_, ,$@)) >endef > > ># $1 - targets ># $2 - rule name ># Returns list of targets (combination of target name and rule name) >define targets_rules >$(foreach model, $1, $(model)_rule_$(strip $(2))) >endef > > >###include $(TOP_DIR)/Makefile.top > >-include $(TOP_DIR)/Makefile.user.default > >-include $(TOP_DIR)/Makefile.user > > >ifeq ($(CONFIG_CCACHE), y) > CC := $(CCACHE) $(CC) > HOST_CC := $(CCACHE) $(CC) >endif > ># Quiet the build process >build = \ > @if [ X"$V" = X"1" ]; then \ > echo '$2'; \ > else \ > printf "[ %-8s ] %s\n" $1 $@; \ > fi; \ > $2 > >define rm_files > @printf "[ RM ] %s\n" "$1"; > @$(RM) -f $1 >endef > >define rm_dir > @printf "[ RM dir ] %s\n" "$1"; > @-$(RM) -rf $1 >endef > > >FLAGS=\ > -Wp,-MMD,$(patsubst %.o,%.d,$(dir $@)$(notdir $@)) \ > -Wp,-MT,$@ \ > -nostdlib \ > -fomit-frame-pointer \ > -fno-strict-aliasing > ># ># ToDo: remove ># -Wno-implicit-function-declaration ># ># Reason: these warnings make sense! potential crash situations. ># >CFLAGS=\ > $(FLAGS) \ > -Os \ > -Wall \ > -W \ > -Wno-unused-parameter \ > -Wno-implicit-function-declaration \ > -Wno-unused-function \ > -Wno-missing-field-initializers \ > -Wno-format \ > -Wdouble-promotion \ > -ffast-math \ > -fno-trapping-math \ > -fsingle-precision-constant \ > -fshort-double \ > -std=gnu99 \ > -D__ARM__ \ > -I$(PLATFORM_INC) \ > -I$(SRC_DIR) \ > -I$(PICOC_PATH) \ > -mthumb-interwork > >NOT_USED_FLAGS=\ > -march=armv5te \ > -msoft-float > >AFLAGS=\ > $(FLAGS) > >-LFLAGS= > >ifdef CONFIG_SMALL_FONTS >$(error CONFIG_SMALL_FONTS must be renamed to ML_SRC_SMALL_FONTS) >endif > >ifdef CONFIG_STATIC_FONTS >$(error CONFIG_STATIC_FONTS must be renamed to ML_SRC_STATIC_FONTS) >endif > >_defined_configs = $(filter CONFIG_%, $(.VARIABLES)) ># Functionality that disables all CONFIG_* entries >ifeq ($(ML_SETUP_DISABLE_USER_CONFIGS),y) >#show_config_values=$(foreach c, $(defined_configs), $(c)=$($(c))) >#$(warning before setting to NO $(show_config_values)) >$(foreach config, $(_defined_configs), $(eval $(config)=n)) >#$(warning after setting to NO $(show_config_values)) >endif > >-include Makefile.setup.default > >-include Makefile.setup.user > >ifdef ML_SETUP_EXTENSION >-include Makefile.$(ML_SETUP_EXTENSION).default > >-include Makefile.$(ML_SETUP_EXTENSION).user >endif > >$(foreach entry, $(_defined_configs), $(eval _CONFIGS-with-$($(entry))+= $(entry))) ># List of defined configs >ML_SETUP_ENABLED_CONFIGS = $(_CONFIGS-with-y) > ># List of configs (CONFIG_%) which also have (%_DIR) variable defined >$(foreach entry, $(ML_SETUP_ENABLED_CONFIGS), $(eval _CONFIGS-with-dir-$(origin $(patsubst CONFIG_%,%,$(entry))_DIR)+= $(entry))) >ML_SETUP_CONFIGS_WITH_DIR = $(_CONFIGS-with-dir-file) > >CFLAGS += $(CFLAG_USER) >FLAGS += $(LFLAG_USER) >AFLAGS += $(AFLAG_USER) > > >##include Makefile.setup > >all: $(SUPPORTED_MODELS) > >include $(PLATFORM_PATH)/Makefile.platform.map > ># This rule is able to run make for specific model (defined in ALL_SUPPORTED_MODELS) >#60D 550D 600D 1100D 50D 500D 5D2 5DC 40D 5D3 EOSM 650D 6D 7D_MASTER:: >$(ALL_SUPPORTED_MODELS):: > $(call call_make_platform) > >7D:: 7D_MASTER > $(MAKE) -C $(PLATFORM_PATH)/7D.203 > >7DFIR: 7D_MASTER 7D > dd if=$(PLATFORM_PATH)/7D.203/autoexec.bin of=$(PLATFORM_PATH)/7D.203/autoexec.fir bs=288 skip=1 >/dev/null 2>&1 > dd if=$(PLATFORM_PATH)/7D_MASTER.203/autoexec.bin of=$(PLATFORM_PATH)/7D_MASTER.203/autoexec.fir bs=288 skip=1 >/dev/null 2>&1 > ./build_fir7.py -r -s $(PLATFORM_PATH)/7D.203/autoexec.fir -m $(PLATFORM_PATH)/7D_MASTER.203/autoexec.fir $(PLATFORM_PATH)/7D.203/7D000203.FIR $(PLATFORM_PATH)/7D.203/MAGIC.FIR >/dev/null > >platform_all_model: > $(MAKE) -C $(PLATFORM_PATH) clean-all-model all-model > >install_platform_all_model: platform_all_model > $(MAKE) -C $(PLATFORM_PATH) install-all-model > >install: install_platform_all_model > >fir: > $(MAKE) -C installer clean_and_fir > >install_fir: fir > $(MAKE) -C installer install_fir > >platform_clean: > $(MAKE) -C platform clean > >clean: platform_clean doxygen_clean > $(call rm_files, \ > magiclantern.lds \ > $(LUA_PATH)/*.o \ > $(LUA_PATH)/.*.d \ > $(LUA_PATH)/liblua.a \ > *.pdf) > @$(RM) -rf $(BINARIES_PATH) > > >zip: all > cd $(PLATFORM_PATH)/all; $(MAKE) docs > cd $(PLATFORM_PATH)/all; $(MAKE) zip > >docs: > cd $(PLATFORM_PATH)/all; $(MAKE) docs > >docq: > cd $(PLATFORM_PATH)/all; $(MAKE) docq > >doxygen: > doxygen > >doxygen_clean: > $(call rm_dir, doxygen-doc) > >dropbox: all > cp $(PLATFORM_PATH)/all/autoexec.bin ~/Dropbox/Public/bleeding-edge/ > > ># for changelog >HG_TEMPLATE=--template '{node|short} | {author|user}: {desc|strip|firstline} \n' >HG_DATE=`date -d '$(1)' +'%Y-%m-%d %H:%M:%S'` >HG_DATE_RANGE=--date "$(call HG_DATE, $(1)) to $(call HG_DATE, $(2))" >HG_CHANGESET_BEFORE_DATE=$(shell hg log --date "<$(call HG_DATE, $(1) )" --template '{date|localdate}:{node|short} \n' | sort | tail -1 | cut -d: -f2 ) > >DIFFSTAT_FILTER=python -c 'import sys; \ > from textwrap import wrap; \ > L = sys.stdin.readlines() or ["No changes."]; \ > L,last = L[:-1],L[-1]; \ > L.sort(key=lambda l: -len(l)); \ > F = [l.split("|")[0].strip() for l in L]; \ > brk = max(len(L)/20, 3); \ > sys.stdout.writelines(L[:brk]); \ > sys.stdout.write("\n ".join(wrap(", ".join(F[brk:]), width=100, break_on_hyphens=False, break_long_words=False, initial_indent=" "))); \ > sys.stdout.write("\n\n" if brk < len(L) else ""); \ > sys.stdout.write(last); \ > ' > ># today's changes are considered in last 24 hours, before compilation time ># yesterday changes: between 24 and 48 hours >changelog: > echo "Change log for magiclantern-$(VERSION)zip" > ChangeLog.txt > echo "compiled from https://bitbucket.org/hudson/magic-lantern/changeset/`hg id -i -r .` " >> ChangeLog.txt > echo "===============================================================================" >> ChangeLog.txt > echo "" >> ChangeLog.txt > echo "Today's changes:" >> ChangeLog.txt > echo "----------------" >> ChangeLog.txt > echo "" >> ChangeLog.txt > hg log $(call HG_DATE_RANGE, today - 1 days, today) $(HG_TEMPLATE) >> ChangeLog.txt ; > echo "" >> ChangeLog.txt > COLUMNS=80 hg diff --stat -r $(call HG_CHANGESET_BEFORE_DATE, today - 1 days ) -r tip | $(DIFFSTAT_FILTER) >> ChangeLog.txt ; > echo "" >> ChangeLog.txt > echo "" >> ChangeLog.txt > echo "Yesterday's changes:" >> ChangeLog.txt > echo "--------------------" >> ChangeLog.txt > echo "" >> ChangeLog.txt > hg log $(call HG_DATE_RANGE, today - 2 days, today - 1 days) $(HG_TEMPLATE) >> ChangeLog.txt ; > echo "" >> ChangeLog.txt > COLUMNS=80 hg diff --stat -r $(call HG_CHANGESET_BEFORE_DATE, today - 2 days) -r $(call HG_CHANGESET_BEFORE_DATE, today - 1 days) | $(DIFFSTAT_FILTER) >> ChangeLog.txt ; > echo "" >> ChangeLog.txt > echo "" >> ChangeLog.txt > echo "Changes for last 30 days:" >> ChangeLog.txt > echo "-------------------------" >> ChangeLog.txt > echo "" >> ChangeLog.txt > hg log $(call HG_DATE_RANGE, today - 30 days, today - 2 days) $(HG_TEMPLATE) >> ChangeLog.txt ; > echo "" >> ChangeLog.txt > COLUMNS=80 hg diff --stat -r $(call HG_CHANGESET_BEFORE_DATE, today - 30 days) -r $(call HG_CHANGESET_BEFORE_DATE, today - 2 days) | $(DIFFSTAT_FILTER) >> ChangeLog.txt ; > >nightly: changelog clean all > mkdir -p $(NIGHTLY_DIR) > cd $(PLATFORM_PATH)/all; $(MAKE) zip > cd $(PLATFORM_PATH)/all; mv *.zip $(NIGHTLY_DIR) > touch build.log > mv build.log $(NIGHTLY_DIR) > mv ChangeLog.txt $(NIGHTLY_DIR) > ln -s $(NIGHTLY_DIR)/build.log $(NIGHTLY_ROOT) > ln -s $(NIGHTLY_DIR)/ChangeLog.txt $(NIGHTLY_ROOT) > ln -s $(NIGHTLY_DIR)/magiclantern*.zip $(NIGHTLY_ROOT) > >FORCE: >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 473748
:
351348
|
351350
| 351372