diff options
author | grodriguez <guille.rodriguez@gmail.com> | 2016-08-30 10:34:43 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-09-02 13:51:24 +0200 |
commit | 3c3a664472e399b0609d6e71cb6028b7758c1685 (patch) | |
tree | f10f5849a89d0ba70885e3a8db4f2f8dbc20dc54 /rules/at91bootstrap2.make | |
parent | f53f788c4db2ef4b141fa5816f6ea2b41c9627d6 (diff) | |
download | ptxdist-3c3a664472e399b0609d6e71cb6028b7758c1685.tar.gz ptxdist-3c3a664472e399b0609d6e71cb6028b7758c1685.tar.xz |
Update at91bootstrap2 package for compatibility with 3.x series
The original 2.x series of at91bootstrap are not available anymore,
and the current rules don't work with the 3.x series. Update them
for at91bootstrap 3.4 and above.
Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/at91bootstrap2.make')
-rw-r--r-- | rules/at91bootstrap2.make | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/rules/at91bootstrap2.make b/rules/at91bootstrap2.make index 4f1aef36e..33c7003f4 100644 --- a/rules/at91bootstrap2.make +++ b/rules/at91bootstrap2.make @@ -19,8 +19,8 @@ PACKAGES-$(PTXCONF_AT91BOOTSTRAP2) += at91bootstrap2 AT91BOOTSTRAP2_VERSION := $(call remove_quotes, $(PTXCONF_AT91BOOTSTRAP2_VERSION)) AT91BOOTSTRAP2_MD5 := $(call remove_quotes, $(PTXCONF_AT91BOOTSTRAP2_MD5)) AT91BOOTSTRAP2 := at91bootstrap-$(AT91BOOTSTRAP2_VERSION) -AT91BOOTSTRAP2_SUFFIX := tar.bz2 -AT91BOOTSTRAP2_URL := ftp://www.at91.com/pub/buildroot/$(AT91BOOTSTRAP2).$(AT91BOOTSTRAP2_SUFFIX) +AT91BOOTSTRAP2_SUFFIX := tar.gz +AT91BOOTSTRAP2_URL := https://github.com/linux4sam/at91bootstrap/archive/v$(AT91BOOTSTRAP2_VERSION).$(AT91BOOTSTRAP2_SUFFIX) AT91BOOTSTRAP2_SOURCE := $(SRCDIR)/$(AT91BOOTSTRAP2).$(AT91BOOTSTRAP2_SUFFIX) AT91BOOTSTRAP2_DIR := $(BUILDDIR)/$(AT91BOOTSTRAP2) AT91BOOTSTRAP2_CONFIG := $(call remove_quotes, $(PTXDIST_PLATFORMCONFIGDIR)/$(PTXCONF_AT91BOOTSTRAP2_CONFIG)) @@ -70,8 +70,13 @@ $(STATEDIR)/at91bootstrap2.install: $(STATEDIR)/at91bootstrap2.targetinstall: @$(call targetinfo) - install -m644 $(AT91BOOTSTRAP2_DIR)/binaries/*boot-$(AT91BOOTSTRAP2_VERSION).bin \ - $(IMAGEDIR)/at91bootstrap.bin + @if [ -e $(AT91BOOTSTRAP2_DIR)/binaries/at91bootstrap.bin ]; then \ + install -m644 $(AT91BOOTSTRAP2_DIR)/binaries/at91bootstrap.bin \ + $(IMAGEDIR)/at91bootstrap.bin; \ + else \ + install -m644 $(AT91BOOTSTRAP2_DIR)/binaries/*boot-$(AT91BOOTSTRAP2_VERSION).bin \ + $(IMAGEDIR)/at91bootstrap.bin; \ + fi @$(call touch) # ---------------------------------------------------------------------------- |