Made it easier to package the current CVS (the HEAD tag). Added package for the AVR Raven uIPv6 files.
This commit is contained in:
parent
2ac1c3e231
commit
e0b821e448
|
@ -1,14 +1,24 @@
|
||||||
ifndef RELEASE
|
ifndef TAG
|
||||||
${error You must specify the RELEASE variable (e.g. make RELEASE=2.2)}
|
ifndef RELEASE
|
||||||
|
${error You must specify the RELEASE variable (e.g. make RELEASE=2.2)}
|
||||||
|
endif
|
||||||
|
RELEASETAG=$(subst .,-,$(RELEASE))
|
||||||
|
TAG=contiki-$(RELEASETAG)
|
||||||
|
else
|
||||||
|
RELEASE=$(TAG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
RELEASETAG=$(subst .,-,$(RELEASE))
|
ifndef CVSUSER
|
||||||
USERNAME=:pserver:anonymous
|
CVSUSER=:pserver:anonymous
|
||||||
CVSROOT=$(USERNAME)@contiki.cvs.sourceforge.net:/cvsroot/contiki
|
endif
|
||||||
|
|
||||||
package: clean export copy tgz zip collectpack almost-clean
|
CVSROOT=$(CVSUSER)@contiki.cvs.sourceforge.net:/cvsroot/contiki
|
||||||
|
|
||||||
test: clean checkout compile
|
package: export-package almost-clean
|
||||||
|
|
||||||
|
test: export-package compile almost-clean
|
||||||
|
|
||||||
|
export-package: clean export copy tgz zip collectpack avr-raven-pack
|
||||||
|
|
||||||
almost-clean:
|
almost-clean:
|
||||||
rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE)
|
rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE)
|
||||||
|
@ -38,10 +48,10 @@ compile:
|
||||||
(cd contiki-2.x/examples/compile-platforms; make)
|
(cd contiki-2.x/examples/compile-platforms; make)
|
||||||
|
|
||||||
checkout:
|
checkout:
|
||||||
cvs -d $(CVSROOT) co -r contiki-$(RELEASETAG) contiki-2.x
|
cvs -d $(CVSROOT) co -r $(TAG) contiki-2.x
|
||||||
|
|
||||||
export:
|
export:
|
||||||
cvs -d $(CVSROOT) export -r contiki-$(RELEASETAG) contiki-2.x
|
cvs -d $(CVSROOT) export -r $(TAG) contiki-2.x
|
||||||
|
|
||||||
contiki-collect:
|
contiki-collect:
|
||||||
(cd contiki-2.x/examples/sky-shell; make sky-shell.ihex; ant dist; chmod 755 dist/tools/*-linux)
|
(cd contiki-2.x/examples/sky-shell; make sky-shell.ihex; ant dist; chmod 755 dist/tools/*-linux)
|
||||||
|
@ -52,3 +62,18 @@ collectpack: contiki-collect
|
||||||
chmod 644 contiki-collect-$(RELEASE).tar.gz
|
chmod 644 contiki-collect-$(RELEASE).tar.gz
|
||||||
zip -r contiki-collect-$(RELEASE).zip contiki-collect-$(RELEASE)
|
zip -r contiki-collect-$(RELEASE).zip contiki-collect-$(RELEASE)
|
||||||
chmod 644 contiki-collect-$(RELEASE).zip
|
chmod 644 contiki-collect-$(RELEASE).zip
|
||||||
|
|
||||||
|
avr-raven:
|
||||||
|
(cd contiki-2.x/examples/webserver-ipv6-raven; make)
|
||||||
|
(cd contiki-2.x/platform/avr-ravenlcd; make)
|
||||||
|
(cd contiki-2.x/examples/ravenusbstick; make)
|
||||||
|
mkdir contiki-raven-uipv6-$(RELEASE)
|
||||||
|
cp contiki-2.x/examples/webserver-ipv6-raven/webserver6.elf contiki-raven-uipv6-$(RELEASE)
|
||||||
|
cp contiki-2.x/platform/avr-ravenlcd/ravenlcd_3290.elf contiki-raven-uipv6-$(RELEASE)
|
||||||
|
cp contiki-2.x/examples/ravenusbstick/ravenusbstick.elf contiki-raven-uipv6-$(RELEASE)
|
||||||
|
|
||||||
|
avr-raven-pack: avr-raven
|
||||||
|
tar czf contiki-raven-uipv6-$(RELEASE).tar.gz contiki-raven-uipv6-$(RELEASE)
|
||||||
|
chmod 644 contiki-raven-uipv6-$(RELEASE).tar.gz
|
||||||
|
zip -r contiki-raven-uipv6-$(RELEASE).zip contiki-raven-uipv6-$(RELEASE)
|
||||||
|
chmod 644 contiki-raven-uipv6-$(RELEASE).zip
|
||||||
|
|
Loading…
Reference in a new issue