Skip to content

Commit 1d4fa93

Browse files
committed
remove tools/cross_compile.sh
1 parent 896e37c commit 1d4fa93

File tree

2 files changed

+1
-463
lines changed

2 files changed

+1
-463
lines changed

ci/Makefile

+1-84
Original file line numberDiff line numberDiff line change
@@ -66,33 +66,6 @@ help:
6666
@echo -e "\te.g. 'make amd64_ubuntu_test'"
6767
@echo -e "\tDocker image unavailable: arm64_archlinux"
6868
@echo
69-
@echo -e "\tBuild using a toolchain."
70-
@echo -e "\t${BOLD}<toolchain>_<toolchain_stage>${RESET}: build <stage> docker image for a specific toolchain target."
71-
@echo -e "\t${BOLD}save_<toolchain>_<toolchain_stage>${RESET}: Save the <stage> docker image for a specific platform."
72-
@echo -e "\t${BOLD}sh_<toolchain>_<toolchain_stage>${RESET}: run a container using the <stage> docker image specified (debug purpose)."
73-
@echo -e "\t${BOLD}clean_<toolchain>_<toolchain_stage>${RESET}: Remove cache and docker image."
74-
@echo -e "\t${BOLD}clean_toolchains${RESET}: Remove ALL cache and docker image."
75-
@echo
76-
@echo -e "\tWith ${BOLD}<toolchain>${RESET}:"
77-
@echo -e "\t\t${BOLD}arm-linux-gnueabihf${RESET} (linaro toolchain)"
78-
@echo -e "\t\t${BOLD}armv8l-linux-gnueabihf${RESET} (linaro toolchain)"
79-
@echo -e "\t\t${BOLD}arm-linux-gnueabi${RESET} (linaro toolchain)"
80-
@echo -e "\t\t${BOLD}armeb-linux-gnueabihf${RESET} (linaro toolchain)"
81-
@echo -e "\t\t${BOLD}armeb-linux-gnueabi${RESET} (linaro toolchain)"
82-
@echo -e "\t\t${BOLD}aarch64-linux-gnu${RESET} (linaro toolchain)"
83-
@echo -e "\t\t${BOLD}aarch64_be-linux-gnu${RESET} (linaro toolchain)"
84-
@echo -e "\t\t${BOLD}mips32${RESET} (codespace toolchain)"
85-
@echo -e "\t\t${BOLD}mips64${RESET} (codespace toolchain)"
86-
@echo -e "\t\t${BOLD}mips32el${RESET} (codespace toolchain)"
87-
@echo -e "\t\t${BOLD}mips64el${RESET} (codespace toolchain)"
88-
@echo
89-
@echo -e "\tWith ${BOLD}<toolchain_stage>${RESET}:"
90-
@echo -e "\t\t${BOLD}env${RESET}"
91-
@echo -e "\t\t${BOLD}devel${RESET}"
92-
@echo -e "\t\t${BOLD}build${RESET}"
93-
@echo -e "\t\t${BOLD}test${RESET}"
94-
@echo -e "\te.g. 'make aarch64-linux-gnu_test'"
95-
@echo
9669
@echo -e "\tBuild using a vagrant machine."
9770
@echo -e "\t${BOLD}<vm>_<vms_stage>${RESET}: build the vagrant <vm> virtual machine."
9871
@echo -e "\t${BOLD}clean_<vm>${RESET}: Remove virtual machine for the specified vm."
@@ -273,62 +246,6 @@ $(foreach platform,$(PLATFORMS),$(eval $(call make-platform-target,$(platform)))
273246
.PHONY: clean_platforms
274247
clean_platforms: $(addprefix clean_, $(PLATFORMS))
275248

276-
###############
277-
## TOOLCHAIN ##
278-
###############
279-
TOOLCHAIN_TARGETS = \
280-
arm-linux-gnueabihf armv8l-linux-gnueabihf arm-linux-gnueabi armeb-linux-gnueabihf armeb-linux-gnueabi \
281-
aarch64-linux-gnu aarch64_be-linux-gnu \
282-
mips32 mips32el mips64 mips64el
283-
TOOLCHAIN_STAGES = env devel build test
284-
285-
define toolchain-stage-target =
286-
#$$(info STAGE: $1)
287-
#$$(info Create targets: toolchain_$1 $(addsuffix _$1, $(TOOLCHAIN_TARGETS)).)
288-
targets_toolchain_$1 = $(addsuffix _$1, $(TOOLCHAIN_TARGETS))
289-
.PHONY: toolchain_$1 $$(targets_toolchain_$1)
290-
toolchain_$1: $$(targets_toolchain_$1)
291-
$$(targets_toolchain_$1): %_$1: docker/toolchain/Dockerfile
292-
#@docker image rm -f ${IMAGE}:$$*_$1 2>/dev/null
293-
${DOCKER_BUILD_CMD} \
294-
--tag ${IMAGE}:$$*_$1 \
295-
--build-arg TARGET=$$* \
296-
--target=$1 \
297-
-f $$< \
298-
..
299-
300-
#$$(info Create targets: save_toolchain_$1 $(addprefix save_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS))) (debug).)
301-
save_targets_toolchain_$1 = $(addprefix save_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS)))
302-
.PHONY: save_toolchain_$1 $$(save_targets_toolchain_$1)
303-
save_toolchain_$1: $$(save_targets_toolchain_$1)
304-
$$(save_targets_toolchain_$1): save_%_$1: cache/%/docker_$1.tar
305-
cache/%/docker_$1.tar: %_$1
306-
@rm -f $$@
307-
mkdir -p cache/$$*
308-
docker save ${IMAGE}:$$*_$1 -o $$@
309-
310-
#$$(info Create targets: $(addprefix sh_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS))) (debug).)
311-
sh_targets_toolchain_$1 = $(addprefix sh_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS)))
312-
.PHONY: $$(sh_targets_toolchain_$1)
313-
$$(sh_targets_toolchain_$1): sh_%_$1: %_$1
314-
${DOCKER_RUN_CMD} -it --name ${IMAGE}_$$*_$1 ${IMAGE}:$$*_$1
315-
316-
#$$(info Create targets: clean_toolchain_$1 $(addprefix clean_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS))).)
317-
clean_targets_toolchain_$1 = $(addprefix clean_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS)))
318-
.PHONY: clean_toolchain_$1 $$(clean_targets_toolchain_$1)
319-
clean_toolchain_$1: $$(clean_targets_toolchain_$1)
320-
$$(clean_targets_toolchain_$1): clean_%_$1:
321-
docker image rm -f ${IMAGE}:$$*_$1 2>/dev/null
322-
rm -f cache/$$*/docker_$1.tar
323-
endef
324-
325-
$(foreach stage,$(TOOLCHAIN_STAGES),$(eval $(call toolchain-stage-target,$(stage))))
326-
327-
## MERGE ##
328-
.PHONY: clean_toolchains
329-
clean_toolchains: $(addprefix clean_toolchain_, $(TOOLCHAIN_STAGES))
330-
-rmdir $(addprefix cache/, $(TOOLCHAIN_TARGETS))
331-
332249
#############
333250
## VAGRANT ##
334251
#############
@@ -352,7 +269,7 @@ $(clean_vms_targets): clean_%:
352269
## CLEAN ##
353270
###########
354271
.PHONY: clean
355-
clean: clean_native clean_platforms clean_toolchains clean_vms
272+
clean: clean_native clean_platforms
356273
docker container prune -f
357274
docker image prune -f
358275
-rmdir cache

0 commit comments

Comments
 (0)