Commit 72495335 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Initial commit

parents
*.defconfig
*.tar.bz2
*.tar.gz
*.sign
*.sig
.*
!.gitignore
Linux/dm644x/linux-davinci/
Linux/mips/linux-mips/
Linux/omap/linux-omap/
dm644x/flash-tools/IRAM-flasher/IRAM-flasher/
dm644x/flash-tools/IRAM-loader/IRAM-loader/
dm644x/flash-tools/NOR-flasher/NOR-flasher/
dm644x/modSign/modSign/
#
# EGLIBC: http://www.eglibc.org
#
url = http://www.eglibc.org
REVISION = 14661
VERSION = 2.12.1
# 2.12.1:
tarballs = eglibc-$(VERSION).tar.bz2
tarballs += eglibc-localedef-$(VERSION).tar.bz2
tarballs += eglibc-ports-$(VERSION).tar.bz2
all: $(tarballs)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Export EGLIBC SVN branch ======="
@svn export -r $(REVISION) $(url)/svn/branches/eglibc-2_12 eglibc-$(VERSION)-r$(REVISION)
@echo -e "\n======= Create EGLIBC tarballs ======="
@( if [ -d eglibc-$(VERSION)-r$(REVISION) ]; then \
cd eglibc-$(VERSION)-r$(REVISION) ; \
mv libc eglibc-$(VERSION) || exit 1 ; \
tar cjvf ../eglibc-$(VERSION).tar.bz2 eglibc-$(VERSION) || exit 1 ; \
mv localedef eglibc-localedef-$(VERSION) || exit 1 ; \
tar cjvf ../eglibc-localedef-$(VERSION).tar.bz2 eglibc-localedef-$(VERSION) || exit 1 ; \
mv ports eglibc-ports-$(VERSION) || exit 1 ; \
tar cjvf ../eglibc-ports-$(VERSION).tar.bz2 eglibc-ports-$(VERSION) || exit 1 ; \
cd .. ; \
rm -rf eglibc-$(VERSION)-r$(REVISION) ; \
fi )
downloads_clean:
@rm -rf $(tarballs)
#
# EGLIBC: http://www.eglibc.org
#
url = http://www.eglibc.org
BRANCH = eglibc-2_16
REVISION = 22666
VERSION = 2.16.1
# 2.12.1:
tarballs = eglibc-$(VERSION).tar.bz2
tarballs += eglibc-localedef-$(VERSION).tar.bz2
tarballs += eglibc-ports-$(VERSION).tar.bz2
all: $(tarballs)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Export EGLIBC SVN branch ======="
@svn export -r $(REVISION) $(url)/svn/branches/$(BRANCH) eglibc-$(VERSION)-r$(REVISION)
@echo -e "\n======= Create EGLIBC tarballs ======="
@( if [ -d eglibc-$(VERSION)-r$(REVISION) ]; then \
cd eglibc-$(VERSION)-r$(REVISION) ; \
mv libc eglibc-$(VERSION) || exit 1 ; \
tar cjvf ../eglibc-$(VERSION).tar.bz2 eglibc-$(VERSION) || exit 1 ; \
mv localedef eglibc-localedef-$(VERSION) || exit 1 ; \
tar cjvf ../eglibc-localedef-$(VERSION).tar.bz2 eglibc-localedef-$(VERSION) || exit 1 ; \
mv ports eglibc-ports-$(VERSION) || exit 1 ; \
tar cjvf ../eglibc-ports-$(VERSION).tar.bz2 eglibc-ports-$(VERSION) || exit 1 ; \
cd .. ; \
rm -rf eglibc-$(VERSION)-r$(REVISION) ; \
fi )
downloads_clean:
@rm -rf $(tarballs)
#
# Download: http://www.gnu.org/prep/ftp.html
#
# You can use the generic url http://ftpmirror.gnu.org
# to automatically choose a nearby and up-to-date mirror.
#
# original url: http://ftp.gnu.org/gnu/binutils
#
url = http://ftpmirror.gnu.org/binutils
# 2.23:
tarballs = binutils-2.23.tar.gz
signatures = binutils-2.23.tar.gz.sig
# 2.22:
tarballs += binutils-2.22.tar.bz2
signatures += binutils-2.22.tar.bz2.sig
# 2.21.1:
tarballs += binutils-2.21.1.tar.bz2
tarballs += binutils-2.21.1a.tar.bz2
signatures += binutils-2.21.1a.tar.bz2.sig
# 2.20.1:
tarballs += binutils-2.20.1.tar.bz2
tarballs += binutils-2.20.1a.tar.bz2
signatures += binutils-2.20.1a.tar.bz2.sig
# 2.16.1:
tarballs += binutils-2.16.1.tar.bz2
tarballs += binutils-2.16.1a.tar.bz2
signatures += binutils-2.16.1a.tar.bz2.sig
all: $(tarballs) $(signatures)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs ======="
@for tarball in $(tarballs) ; do \
wget -N $(url)/$$tarball ; \
done
$(signatures):
@echo -e "\n======= Downloading tarball signatures ======="
@for signature in $(signatures) ; do \
wget -N $(url)/$$signature ; \
done
downloads_clean:
@rm -rf $(tarballs) $(signatures)
#
# Download: http://www.gnu.org/prep/ftp.html
#
# You can use the generic url http://ftpmirror.gnu.org
# to automatically choose a nearby and up-to-date mirror.
#
# original url: http://ftp.gnu.org/gnu/gcc/gcc-$(version)
#
gcc_url_prefix = http://ftpmirror.gnu.org/gcc/gcc
# GCC: 4.4.4 4.5.1 ... separated with space
versions = 4.5.1 4.7.2
tarballs = .gcc_tarballs_done
# GMP, MPFR, MPC sites:
gmp_url = http://ftpmirror.gnu.org/gmp
mpfr_url = http://ftpmirror.gnu.org/mpfr
mpc_url = http://www.multiprecision.org/mpc/download
# GMP, MPFR, MPC tarbals & signatures:
gmp_tarballs = gmp-4.3.1.tar.bz2 gmp-5.0.5.tar.bz2
gmp_signatures = gmp-4.3.1.tar.bz2.sig gmp-5.0.5.tar.bz2.sig
mpfr_tarballs = mpfr-2.4.2.tar.bz2 mpfr-3.1.1.tar.bz2
mpfr_signatures = mpfr-2.4.2.tar.bz2.sig mpfr-3.1.1.tar.bz2.sig
mpc_tarballs = mpc-0.8.2.tar.gz mpc-1.0.1.tar.gz
mpc_signatures = mpc-0.8.2.tar.gz.asc mpc-1.0.1.tar.gz.asc
TARGETS = $(tarballs)
TARGETS += $(gmp_tarballs) $(mpfr_tarballs) $(mpc_tarballs)
TARGETS += $(gmp_signatures) $(mpfr_signatures) $(mpc_signatures)
all: $(TARGETS)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading GCC tarballs ======="
@for version in $(versions) ; do \
wget -N $(gcc_url_prefix)-$$version/gcc-$$version.tar.bz2 ; \
wget -N $(gcc_url_prefix)-$$version/gcc-$$version.tar.bz2.sig ; \
done
@touch $@
$(gmp_tarballs):
@echo -e "\n======= Downloading GMP tarballs ======="
@for tarball in $(gmp_tarballs) ; do \
wget -N $(gmp_url)/$$tarball ; \
done
$(mpfr_tarballs):
@echo -e "\n======= Downloading MPFR tarballs ======="
@for tarball in $(mpfr_tarballs) ; do \
wget -N $(mpfr_url)/$$tarball ; \
done
$(mpc_tarballs):
@echo -e "\n======= Downloading MPC tarballs ======="
@for tarball in $(mpc_tarballs) ; do \
wget -N $(mpc_url)/$$tarball ; \
done
$(gmp_signatures):
@echo -e "\n======= Downloading GMP signatures ======="
@for tarball in $(gmp_signatures) ; do \
wget -N $(gmp_url)/$$tarball ; \
done
$(mpfr_signatures):
@echo -e "\n======= Downloading MPFR signatures ======="
@for tarball in $(mpfr_signatures) ; do \
wget -N $(mpfr_url)/$$tarball ; \
done
$(mpc_signatures):
@echo -e "\n======= Downloading MPC signatures ======="
@for tarball in $(mpc_signatures) ; do \
wget -N $(mpc_url)/$$tarball ; \
done
downloads_clean:
@rm -rf gcc-* $(tarballs) \
$(gmp_tarballs) $(mpfr_tarballs) $(mpc_tarballs) \
$(gmp_signatures) $(mpfr_signatures) $(mpc_signatures)
#
# Download: http://www.gnu.org/prep/ftp.html
#
# You can use the generic url http://ftpmirror.gnu.org
# to automatically choose a nearby and up-to-date mirror.
#
# original url: http://ftp.gnu.org/gnu/gdb
#
url = http://ftpmirror.gnu.org/gdb
tarballs = gdb-6.4a.tar.bz2
tarballs += gdb-6.5a.tar.bz2
tarballs += gdb-7.0a.tar.bz2
tarballs += gdb-7.2a.tar.bz2
tarballs += gdb-7.5.tar.bz2
signatures = gdb-6.4a.tar.bz2.sig
signatures += gdb-6.5a.tar.bz2.sig
signatures += gdb-7.0a.tar.bz2.sig
signatures += gdb-7.2a.tar.bz2.sig
signatures += gdb-7.5.tar.bz2.sig
all: $(tarballs) $(signatures)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs ======="
@for tarball in $(tarballs) ; do \
wget -N $(url)/$$tarball ; \
done
$(signatures):
@echo -e "\n======= Downloading tarball signatures ======="
@for signature in $(signatures) ; do \
wget -N $(url)/$$signature ; \
done
downloads_clean:
@rm -rf $(tarballs) $(signatures)
#
# url = http://www.kernel.org/pub/linux/kernel/[v2.6|3.x]
#
# mirrors:
#
# url = http://www.se.kernel.org/pub/linux/kernel/[v2.6|3.x]
#
url_prefix = http://www.kernel.org/pub/linux/kernel
url_v2_6 = v2.6
url_v3_x = v3.x
tarballs_2_6 = linux-2.6.36.tar.bz2 linux-2.6.39.4.tar.bz2
signatures_2_6 = linux-2.6.36.tar.bz2.sign linux-2.6.39.4.tar.bz2.sign
tarballs_3_x = linux-3.5.4.tar.bz2 linux-3.8.5.tar.bz2
signatures_3_x = linux-3.5.4.tar.sign linux-3.8.5.tar.sign
TARGETS = $(tarballs_2_6) $(signatures_2_6)
TARGETS += $(tarballs_3_x) $(signatures_3_x)
all: $(TARGETS)
.PHONY: downloads_clean
#
# v2.6
#
$(tarballs_2_6):
@echo -e "\n======= Downloading source tarballs ======="
@for tarball in $(tarballs_2_6) ; do \
wget -N $(url_prefix)/$(url_v2_6)/$$tarball ; \
done
$(signatures_2_6):
@echo -e "\n======= Downloading tarball signatures ======="
@for signature in $(signatures_2_6) ; do \
wget -N $(url_prefix)/$(url_v2_6)/$$signature ; \
done
#
# v3.x
#
$(tarballs_3_x):
@echo -e "\n======= Downloading source tarballs ======="
@for tarball in $(tarballs_3_x) ; do \
wget -N $(url_prefix)/$(url_v3_x)/$$tarball ; \
done
$(signatures_3_x):
@echo -e "\n======= Downloading tarball signatures ======="
@for signature in $(signatures_3_x) ; do \
wget -N $(url_prefix)/$(url_v3_x)/$$signature ; \
done
downloads_clean:
@rm -rf $(TARGETS)
#
# Davinci Linux Kernel: http://processors.wiki.ti.com/index.php/DaVinci_GIT_Linux_Kernel
#
#url = git://gitorious.org/linux-davinci
url = git://radix.pro
repo_name = linux-davinci
#
# List of tags to be extracted:
#
TAGS = v2.6.36-davinci1
TAGS += v3.8-davinci2
#
# Default Linux config file name:
#
_defconfig = davinci_all_defconfig
git_repo = .git_clone
versions = $(foreach tag,$(TAGS),$(shell echo $(tag) | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2,$(addprefix linux-,$(versions)))
defconfigs = $(addsuffix .defconfig,$(addprefix linux-,$(versions)))
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo "\n======= Clone Kevin Hilman $(repo_name).git repository ======="
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
$(tarballs): $(git_repo)
@for tag in $(TAGS) ; do \
version=`echo $$tag | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'` ; \
if [ ! -f linux-$$version.tar.bz2 ]; then \
echo "\n======= Creating 'linux-$$version.tar.bz2' snapshot =======" ; \
( cd $(repo_name) && \
git archive --format=tar --prefix=linux-$$version/ $$tag | \
bzip2 >../linux-$$version.tar.bz2 ) ; \
fi ; \
done
$(defconfigs): %.defconfig: %.tar.bz2
@for arch in $< ; do \
version=`echo $$arch | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\([\.].*\)/\2/'` ; \
echo "\n======= Extracting default '.config' from '$$arch' tarball =======" ; \
( tar -xjf $$arch \
linux-$$version/arch/arm/configs/$(_defconfig) && \
cp linux-$$version/arch/arm/configs/$(_defconfig) linux-$$version.defconfig && \
rm -rf linux-$$version ) ; \
done
repository_clean: $(defconfigs)
@echo "\n======= Remove cloned $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(defconfigs)
Kevin Hilman: http://processors.wiki.ti.com/index.php/DaVinci_GIT_Linux_Kernel
GIT - git://gitorious.org/linux-davinci/linux-davinci.git
Web - http://gitorious.org/linux-davinci
Clone:
=====
$ git clone git://gitorious.org/linux-davinci/linux-davinci.git linux-davinci
Radix Mirror (create):
=====================
$ git clone --mirror git://gitorious.org/linux-davinci/linux-davinci.git
Radix Mirror (clone):
=====================
$ git clone git://radix.pro/linux-davinci.git linux-davinci
Tags with names like v2.6.35, v2.6.35-rc* - is the same as we have in common Linux Kernel repository.
Tags with names like v2.6.35-davinci1 - is tags with DM644X code from Kevin Hilman.
Create snapshot:
===============
cd linux-davinci; git archive --format=tar --prefix=linux-2.6.36/ v2.6.36-davinci1 | bzip2 >../linux-2.6.36.tar.bz2
cd linux-davinci; git archive --format=tar --prefix=linux-3.8/ v3.8-davinci2 | bzip2 >../linux-3.8.tar.bz2
Config (arch/arm/configs):
=========================
davinci_all_defconfig
#
# MIPS Linux Kernel: http://processors.wiki.ti.com/index.php/DaVinci_GIT_Linux_Kernel
#
#url = git://git.linux-mips.org/pub/scm/ralf
url = git://radix.pro
repo_name = linux-mips
#
# List of tags to be extracted:
#
TAGS = linux-2.6.31
TAGS += linux-2.6.31.12
TAGS += linux-2.6.36
TAGS += linux-3.8.5
#
# Default Linux config file name:
#
_defconfig = bcm47xx_defconfig
git_repo = .git_clone
versions = $(foreach tag,$(TAGS),$(shell echo $(tag) | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2,$(addprefix linux-,$(versions)))
defconfigs = $(addsuffix .defconfig,$(addprefix linux-,$(versions)))
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo "\n======= Clone $(repo_name).git repository ======="
@rm -rf $(repo_name)
@if [ "$(url)" = 'git://radix.pro' ]; then \
git clone $(url)/$(repo_name).git $(repo_name) ; \
else \
git clone $(url)/linux.git $(repo_name) ; \
fi
@touch $@
$(tarballs): $(git_repo)
@for tag in $(TAGS) ; do \
version=`echo $$tag | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'` ; \
if [ ! -f linux-$$version.tar.bz2 ]; then \
echo "\n======= Creating 'linux-$$version.tar.bz2' snapshot =======" ; \
( cd $(repo_name) && \
git archive --format=tar --prefix=linux-$$version/ $$tag | \
bzip2 >../linux-$$version.tar.bz2 ) ; \
fi ; \
done
$(defconfigs): %.defconfig: %.tar.bz2
@for arch in $< ; do \
version=`echo $$arch | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\([\.].*\)/\2/'` ; \
echo "\n======= Extracting default '.config' from '$$arch' tarball =======" ; \
( tar -xjf $$arch \
linux-$$version/arch/mips/configs/$(_defconfig) && \
cp linux-$$version/arch/mips/configs/$(_defconfig) linux-$$version.defconfig && \
rm -rf linux-$$version ) ; \
done
repository_clean: $(defconfigs)
@echo "\n======= Remove cloned $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(defconfigs)
MIPS Linux Kernel:
=================
http://www.linux-mips.org/wiki/Main_Page
http://www.linux-mips.org/wiki/Getting_the_kernel
http://www.linux-mips.org/wiki/Git
Clone:
=====
$ git clone git://git.linux-mips.org/pub/scm/ralf/linux.git linux-mips
Radix Mirror (create):
=====================
$ git clone --mirror git://git.linux-mips.org/pub/scm/ralf/linux.git linux-mips.git
Radix Mirror (clone):
=====================
$ git clone git://radix.pro/linux-mips.git linux-mips
Tags with names like linux-2.6.36 - are targ with MIPS code from linux-mips.org.
Create snapshot:
===============
cd linux-mips && git archive --format=tar --prefix=linux-2.6.31/ linux-2.6.31 | bzip2 > ../linux-2.6.31.tar.bz2
Config (arch/mips/configs):
=========================
bcm63xx_defconfig
#
# OMAP Linux Kernel: http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git
#
#url = git://git.kernel.org/pub/scm/linux/kernel/git/tmlind
url = git://radix.pro
repo_name = linux-omap
#
# List of tags to be extracted:
#
TAGS = v2.6.32-omap1
TAGS += v2.6.36
TAGS += v3.8.3
#
# Default Linux config file name:
#
_defconfig = omap_4430sdp_defconfig
git_repo = .git_clone
versions = $(foreach tag,$(TAGS),$(shell echo $(tag) | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2,$(addprefix linux-,$(versions)))
defconfigs = $(addsuffix .defconfig,$(addprefix linux-,$(versions)))
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo "\n======= Clone $(repo_name).git repository ======="
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
$(tarballs): $(git_repo)
@for tag in $(TAGS) ; do \
version=`echo $$tag | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'` ; \
if [ ! -f linux-$$version.tar.bz2 ]; then \
echo "\n======= Creating 'linux-$$version.tar.bz2' snapshot =======" ; \
( cd $(repo_name) && \
git archive --format=tar --prefix=linux-$$version/ $$tag | \
bzip2 >../linux-$$version.tar.bz2 ) ; \
fi ; \
done
$(defconfigs): %.defconfig: %.tar.bz2
@for arch in $< ; do \
version=`echo $$arch | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\([\.].*\)/\2/'` ; \
if [ "$$version" \> "2.6.36" ]; then \
defcfg="omap2plus_defconfig" ; \
else \
defcfg=$(_defconfig) ; \
fi ; \
echo "\n======= Extracting default '.config' from '$$arch' tarball =======" ; \
( tar -xjf $$arch \
linux-$$version/arch/arm/configs/$$defcfg && \
cp linux-$$version/arch/arm/configs/$$defcfg linux-$$version.defconfig && \
rm -rf linux-$$version ) ; \
done
repository_clean: $(defconfigs)
@echo "\n======= Remove cloned $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(defconfigs)
Tony Lindgren, Kevin Hilman: http://processors.wiki.ti.com/index.php/OMAP3_GIT_Linux_Kernel (deprecated)
cGit:
====
http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git
Clone:
=====
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git linux-omap
Radix Mirror (create):
=====================
$ git clone --mirror git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
Radix Mirror (clone):
=====================
$ git clone git://radix.pro/linux-omap.git linux-omap
linux-2.6.32: tagget as v2.6.32-omap1 tag
linux-2.6.36: is a master branch after a83d12a47c9a8c78a184910150797045d69a1570 (22 of October, 2010).
Tags with names like v2.6.36, v2.6.36-rc* - is the same as we have in common Linux Kernel repository.
Tags with names like v2.6.32-omap1 - is tags with OMAP3 code from Tony Lindgren and Kevin Hilman.
Create snapshot:
===============
cd linux-omap; git archive --format=tar --prefix=linux-2.6.36/ a83d12a47c9a8c78a184910150797045d69a1570 | bzip2 >../linux-2.6.36.tar.bz2
Config (arch/arm/configs):
=========================
omap2plus_defconfig
Additional info:
===============
http://www.omappedia.com/wiki/Source_Trees
http://dev.omapzoom.org/
#
# Following command helps to cheate SUBDIRS list:
# $ tree -fid .
#
SUBDIRS := GNU/EGLIBC/2.12.1 \
GNU/EGLIBC/2.16.1 \
GNU/binutils \
GNU/gcc \
GNU/gdb \
Linux \
Linux/dm644x \
Linux/mips \
Linux/omap \
newlib \
dm644x/flash-tools/IRAM-flasher \
dm644x/flash-tools/IRAM-loader \
dm644x/flash-tools/NOR-flasher \
dm644x/modSign
all-recursive downloads_clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
local_target="$$target"; \
(cd $$subdir && $(MAKE) $$fnord $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; test -z "$$fail"
all: all-recursive
downloads_clean: downloads_clean-recursive
.PHONY: all-recursive downloads_clean-recursive all downloads_clean
#
# IRAM-flasher
#
url = git@radix.pro:/u3/scm/git
repo_name = IRAM-flasher
#
# List of tags to be extracted:
#
TAGS = 0.0.1
git_repo = .git_clone
# here version is equal to tag, but version variable is defined for case
# when tag name contains version as subctring [see /Lunux/dm644x/Makefile]
versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2,$(addprefix $(repo_name)-,$(versions)))
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo "\n======= Clone $(repo_name).git repository ======="
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
$(tarballs): $(git_repo)
@for tag in $(TAGS) ; do \
version=$$tag ; \
if [ ! -f $(repo_name)-$$version.tar.bz2 ]; then \
echo "\n======= Creating '$(repo_name)-$$version.tar.bz2' snapshot =======" ; \
( cd $(repo_name) && \
git archive --format=tar --prefix=$(repo_name)-$$version/ $$version | \
bzip2 >../$(repo_name)-$$version.tar.bz2 ) ; \
fi ; \
done
repository_clean: $(tarballs)
@echo "\n======= Remove $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs)
#
# IRAM-loader
#
url = git@radix.pro:/u3/scm/git
repo_name = IRAM-loader
#
# List of tags to be extracted:
#
TAGS = 0.0.1