add virtual toolchain package cc

pull/1990/head
Tony Theodore 7 years ago
parent e7b9a21056
commit 3a26dafbd1

@ -418,6 +418,9 @@ $(PREFIX)/installed/print-git-oneline-$(GIT_HEAD): | $(PREFIX)/installed/.gitkee
# - downloads and `build-pkg` use both explicit and implicit deps
# - don't depend on `disabled` rules but do depend on virtual pkgs
# cross libraries depend on virtual toolchain package, variable used
# in `cleanup-deps-style` rule below
CROSS_COMPILER := cc
MXE_REQS_PKGS =
# distinguish between deliberately empty rules and disabled ones
@ -884,9 +887,9 @@ cleanup-style:
cleanup-deps-style:
@grep '(PKG)_DEPS.*\\' $(foreach 1,$(PKGS),$(PKG_MAKEFILES)) > $(TOP_DIR)/tmp-$@-pre
@$(foreach PKG,$(PKGS), \
$(if $(call lne,$(sort $(filter-out gcc,$($(PKG)_DEPS))),$(filter-out gcc,$($(PKG)_DEPS))), \
$(if $(call lne,$(sort $(filter-out $(CROSS_COMPILER),$($(PKG)_DEPS))),$(filter-out $(CROSS_COMPILER),$($(PKG)_DEPS))), \
$(info [cleanup] $(PKG)) \
$(SED) -i 's/^\([^ ]*_DEPS *:=\)[^$$]*$$/\1 '"$(strip $(filter gcc,$($(PKG)_DEPS)) $(sort $(filter-out gcc,$($(PKG)_DEPS))))"'/' '$(call PKG_MAKEFILES,$(PKG))'; \
$(SED) -i 's/^\([^ ]*_DEPS *:=\)[^$$]*$$/\1 '"$(strip $(filter $(CROSS_COMPILER),$($(PKG)_DEPS)) $(sort $(filter-out $(CROSS_COMPILER),$($(PKG)_DEPS))))"'/' '$(call PKG_MAKEFILES,$(PKG))'; \
))
@grep '(PKG)_DEPS.*\\' $(foreach 1,$(PKGS),$(PKG_MAKEFILES)) > $(TOP_DIR)/tmp-$@-post
@diff -u $(TOP_DIR)/tmp-$@-pre $(TOP_DIR)/tmp-$@-post >/dev/null \

@ -278,7 +278,7 @@ exit</pre>
<p>
If you only need the most basic tools you can also use:
</p>
<pre>make gcc</pre>
<pre>make cc</pre>
<p>
and add any additional packages you need later on.
You can also supply a host of packages on the
@ -933,7 +933,7 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
non-parallel
</dd>
<dt>make gcc</dt>
<dt>make cc</dt>
<dd>
build a minimal useful set of packages,
@ -1344,14 +1344,14 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
The easiest way to get the dependencies right
is to start with a minimal setup.
That is,
initialize MXE with <code>make gcc</code> only,
initialize MXE with <code>make cc</code> only,
then check whether your package builds successfully.
</p>
<p>
Always list the dependency on <code>gcc</code> explicitly:
Always list the dependency on <code>cc</code> explicitly:
</p>
<pre>$(PKG)_DEPS := gcc ...</pre>
<pre>$(PKG)_DEPS := cc ...</pre>
<p>
Specify official name and website of a package.

@ -0,0 +1,9 @@
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := cc
$(PKG)_WEBSITE := https://mxe.cc
$(PKG)_DESCR := Dependency package for cross libraries
$(PKG)_VERSION := 1
$(PKG)_DEPS := gcc
$(PKG)_OO_DEPS = pkgconf $(MXE_REQS_PKGS)
$(PKG)_TYPE := meta

@ -28,7 +28,7 @@ $(PKG)_IGNORE :=
$(PKG)_VERSION := %(version)s
$(PKG)_CHECKSUM := %(checksum)s
%(file_specs)s
$(PKG)_DEPS := gcc
$(PKG)_DEPS := cc
%(update)s
define $(PKG)_BUILD
%(build)s

Loading…
Cancel
Save