Date: | 2010-09-25 10:16:25 (13 years 5 months ago) |
---|---|
Author: | Xiangfu Liu |
Commit: | 7b710f3e0853e019bbe76006fe2ae59b5c8c4efd |
Message: | for misunderstand the debian rules. I create a [debian] branch for
debian package develop. this is not good. we should add the debian/
folder to master branch this commit: cp the debina/ folder from [debian] branch then remove the [debian] branch Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc> |
Files: |
debian/.gitignore (1 diff) debian/README.source (1 diff) debian/autogen.sh (1 diff) debian/changelog (1 diff) debian/changelog.upstream.awk (1 diff) debian/clean.sh (1 diff) debian/compat (1 diff) debian/control (1 diff) debian/copyright (1 diff) debian/dirs (1 diff) debian/docs (1 diff) debian/get-orig-source.sh (1 diff) debian/rules (1 diff) debian/source/format (1 diff) debian/source/include-binaries (1 diff) debian/watch (1 diff) debian/xburst-tools.manpages (1 diff) |
Change Details
debian/.gitignore | ||
---|---|---|
1 | /stage1.bin | |
2 | /xburst_stage1.bin | |
3 | /xburst_stage2.bin | |
4 | /changelog.upstream | |
5 | ||
6 | /files | |
7 | ||
8 | /*.debhelper.log | |
9 | /*.substvars | |
10 | ||
11 | /xburst-tools |
debian/README.source | ||
---|---|---|
1 | This Debian package is developed in a Git repository (see the Vcs-Git field | |
2 | of debian/control). To build from a git checkout: | |
3 | ||
4 | debian/rules get-orig-source REPO=. BRANCH=remotes/origin/debian | |
5 | mv xburst-tools_*.tar.gz .. | |
6 | debian/autogen.sh | |
7 | debuild | |
8 | ||
9 | This requires a mipsel-openwrt-linux- cross-toolchain in your $PATH. You | |
10 | can get one by building the development environment from Qi Hardware, for | |
11 | example. | |
12 | ||
13 | git://projects.qi-hardware.com/openwrt-xburst.git xburst | |
14 | ||
15 | See the Qi Hardware wiki for details. | |
16 | ||
17 | http://en.qi-hardware.com/wiki/Building_Software_Image | |
18 | ||
19 | To build a released version of this package, no special instructions apply. | |
20 | “dpkg-buildpackage” or “apt-get -b source xburst-tools” should work as | |
21 | usual. | |
22 | ||
23 | -- Jonathan Nieder <jrnieder@gmail.com> Mon, 05 Apr 2010 06:21:12 -0500 |
debian/autogen.sh | ||
---|---|---|
1 | #!/bin/sh | |
2 | # Generate debian/xburst_stage1.bin, debian/xburst_stage2.bin, | |
3 | # and debian/changelog.upstream. | |
4 | # | |
5 | # Uses debian/changelog and the git revision log. | |
6 | # | |
7 | # Requires a mipsel-openwrt-linux- toolchain on the $PATH. | |
8 | ||
9 | set -e | |
10 | ||
11 | dpkg-parsechangelog --format rfc822 --all | | |
12 | awk -f debian/changelog.upstream.awk | |
13 | ||
14 | debian/rules firmware | |
15 | cp -f usbboot/xburst_stage1/xburst_stage1.bin debian/ | |
16 | cp -f usbboot/xburst_stage2/xburst_stage2.bin debian/ | |
17 | cp -f xbboot/target-stage1/stage1.bin debian/ |
debian/changelog | ||
---|---|---|
1 | xburst-tools (0.0+201007-1) lucid; urgency=low | |
2 | ||
3 | * Initial release, taken from commit b21d2e4 (Closes: #535429) | |
4 | ||
5 | -- xiangfu <xiangfu@sharism.cc> Tue, 14 Sep 2010 22:34:15 +0800 |
debian/changelog.upstream.awk | ||
---|---|---|
1 | #!/bin/awk -f | |
2 | # Generate debian/changelog.upstream from debian/changelog and | |
3 | # the git revision log. Inspired by Gerrit Pape’s | |
4 | # debian/changelog.upstream.sh, from the git-core Debian package. | |
5 | # | |
6 | # Requires a working /dev/stderr. | |
7 | # | |
8 | # Usage: | |
9 | # dpkg-parsechangelog --format rfc822 --all | | |
10 | # awk -f debian/changelog.upstream.awk | |
11 | ||
12 | # If argument matches /^Version: /, return remaining text. | |
13 | # Result is nonempty if and only if argument matches. | |
14 | function version_line(line) { | |
15 | if (line ~ /^Version: /) { | |
16 | sub(/^Version: /, "", line); | |
17 | return line; | |
18 | } | |
19 | return ""; | |
20 | } | |
21 | ||
22 | # If argument matches /^\*.* from commit /, return remaining text. | |
23 | # Result is nonempty if and only if argument matches. | |
24 | function commit_id_line(line) { | |
25 | if (line ~ / from commit /) { | |
26 | sub(/^.* from commit /, "", line); | |
27 | sub(/[(][Cc]loses.*/, "", line); | |
28 | sub(/[^0-9a-f]*$/, "", line); | |
29 | return line; | |
30 | } | |
31 | return ""; | |
32 | } | |
33 | ||
34 | # Read standard input, scanning for a changelog entry of the | |
35 | # form “* New snapshot, taken from commit <blah>.” | |
36 | # Result is <blah>. | |
37 | # Result is empty and writes a message to standard error if no such entry is | |
38 | # found before the next Version: line with a different upstream | |
39 | # version (or EOF). | |
40 | # Argument is the upstream version sought. | |
41 | function read_commit_id(upstream, line,version,corresponding_upstream,commit) { | |
42 | while (getline line) { | |
43 | version = version_line(line); | |
44 | corresponding_upstream = version; | |
45 | sub(/-[^-]*$/, "", corresponding_upstream); | |
46 | if (version != "" && corresponding_upstream != upstream) | |
47 | break; | |
48 | ||
49 | commit = commit_id_line(line); | |
50 | if (commit != "") | |
51 | return commit; | |
52 | } | |
53 | ||
54 | print "No commit id for " upstream >> "/dev/stderr"; | |
55 | return ""; | |
56 | } | |
57 | ||
58 | BEGIN { | |
59 | last = "none"; | |
60 | last_cid = "none"; | |
61 | cl = "debian/changelog.upstream"; | |
62 | } | |
63 | ||
64 | # Add a list of all revisions up to last to debian/changelog.upstream | |
65 | # and set last = new_cid. | |
66 | # new is a user-readable name for the commit new_cide. | |
67 | function add_version(new,new_cid, limiter,versionline,command,line) { | |
68 | if (last == "none") { | |
69 | printf "" > cl; | |
70 | last = new; | |
71 | last_cid = new_cid; | |
72 | return 0; | |
73 | } | |
74 | ||
75 | if (new == "none") { | |
76 | versionline = "Version " last; | |
77 | limiter = ""; | |
78 | } else { | |
79 | versionline = "Version " last "; changes since " new ":"; | |
80 | limiter = new_cid ".."; | |
81 | } | |
82 | print versionline >> cl; | |
83 | gsub(/./, "-", versionline); | |
84 | print versionline >> cl; | |
85 | ||
86 | print "" >> cl; | |
87 | command = "git shortlog \"" limiter last_cid "\""; | |
88 | while(command | getline line) | |
89 | print line >> cl; | |
90 | ||
91 | if (new != "none") | |
92 | print "" >> cl; | |
93 | last = new; | |
94 | last_cid = new_cid; | |
95 | } | |
96 | ||
97 | { | |
98 | version = version_line($0); | |
99 | if (version != "") { | |
100 | # strip Debian revision | |
101 | upstream_version = version; | |
102 | sub(/-[^-]*$/, "", upstream_version); | |
103 | ||
104 | commit = read_commit_id(upstream_version); | |
105 | if (commit == "") | |
106 | exit 1; | |
107 | add_version(upstream_version, commit); | |
108 | } | |
109 | } | |
110 | ||
111 | END { | |
112 | add_version("none", "none"); | |
113 | } |
debian/clean.sh | ||
---|---|---|
1 | #!/bin/sh | |
2 | # Clean up after a failed build. | |
3 | # | |
4 | # Requires access to .gitignore files excluding _all_ modified files. | |
5 | # | |
6 | # Requires a working /dev/fd (with more than just /dev/fd/0 and 1) | |
7 | # or gawk. | |
8 | ||
9 | set -e | |
10 | ||
11 | splitgitignore='#!/usr/bin/awk | |
12 | !/^#/ && !/^$/ { | |
13 | glob = /[[*?]/; | |
14 | directory = /\/$/; | |
15 | sub(/\/$/, ""); | |
16 | anchored = /\//; | |
17 | sub(/^\//, ""); | |
18 | ||
19 | output = "nonexistent/nonsense"; | |
20 | if (anchored) { | |
21 | if (!directory && !glob) | |
22 | output = "/dev/fd/1"; | |
23 | else if (directory && !glob) | |
24 | output = "/dev/fd/3"; | |
25 | else if (!directory && glob) | |
26 | output = "/dev/fd/4"; | |
27 | else if (directory && glob) | |
28 | output = "/dev/fd/5"; | |
29 | } else { | |
30 | if (!directory) | |
31 | output = "/dev/fd/6"; | |
32 | else | |
33 | output = "/dev/fd/7"; | |
34 | } | |
35 | print >> output; | |
36 | } | |
37 | ' | |
38 | ||
39 | offlimits="-type d -name '.*' -prune -o -type d -name debian -prune" | |
40 | ||
41 | remove_file_globs() { | |
42 | while read glob | |
43 | do | |
44 | eval "rm -f $glob" | |
45 | done | |
46 | } | |
47 | ||
48 | remove_directory_globs() { | |
49 | while read glob | |
50 | do | |
51 | eval "rm -fr $glob" | |
52 | done | |
53 | } | |
54 | ||
55 | remove_file_findpatterns() { | |
56 | while read pat | |
57 | do | |
58 | find . $offlimits -o \ | |
59 | '(' -name "$pat" -execdir rm -f '{}' + ')' | |
60 | done | |
61 | } | |
62 | ||
63 | remove_directory_findpatterns() { | |
64 | while read pat | |
65 | do | |
66 | find . $offlimits -o \ | |
67 | '(' -type d -name "$pat" -execdir rm -fr '{}' + ')' | |
68 | done | |
69 | } | |
70 | ||
71 | find . $offlimits -o '(' -name .gitignore -print ')' | | |
72 | while read file | |
73 | do | |
74 | ( | |
75 | cd "$(dirname "$file")" | |
76 | # Dispatch using pipes. Yuck. | |
77 | { { { { { | |
78 | awk "$splitgitignore" | | |
79 | { | |
80 | # anchored files (globless) | |
81 | xargs -d '\n' rm -f | |
82 | } | |
83 | } 3>&1 >&2 | | |
84 | { | |
85 | # anchored directories (globless) | |
86 | xargs -d '\n' rm -fr | |
87 | } | |
88 | } 4>&1 >&2 | | |
89 | { | |
90 | # anchored files | |
91 | remove_file_globs | |
92 | } | |
93 | } 5>&1 >&2 | | |
94 | { | |
95 | # anchored directories | |
96 | remove_directory_globs | |
97 | } | |
98 | } 6>&1 >&2 | | |
99 | { | |
100 | # unanchored files | |
101 | remove_file_findpatterns | |
102 | } | |
103 | } 7>&1 >&2 | | |
104 | { | |
105 | remove_directory_findpatterns | |
106 | } >&2 | |
107 | ) < "$file" | |
108 | done |
debian/compat | ||
---|---|---|
1 | 7 |
debian/control | ||
---|---|---|
1 | Source: xburst-tools | |
2 | Section: misc | |
3 | Priority: extra | |
4 | Maintainer: Xiangfu Liu <xiangfu@sharism.cc> | |
5 | Build-Depends: debhelper (>= 7.4.10), | |
6 | pkg-config, autoconf, automake, | |
7 | libusb-dev, libconfuse-dev | |
8 | Build-Conflicts: automake1.4 | |
9 | Standards-Version: 3.9.1 | |
10 | Vcs-Git: git://projects.qi-hardware.com/xburst-tools.git | |
11 | Vcs-Browser: http://projects.qi-hardware.com/index.php/p/xburst-tools/source/changes/master/ | |
12 | Homepage: http://projects.qi-hardware.com/index.php/p/xburst-tools/ | |
13 | ||
14 | Package: xburst-tools | |
15 | Architecture: any | |
16 | Depends: ${shlibs:Depends}, ${misc:Depends} | |
17 | Description: tools for Ingenic XBurst CPU USB boot and NAND flash access | |
18 | xburst-tools contains tools for Ingenic XBurst CPU device booting. | |
19 | It can flash bootloader, kernel, rootfs to Ingenic XBurst CPU | |
20 | device NAND, and also has test functions for Ingenic XBurst CPU | |
21 | devices. |
debian/copyright | ||
---|---|---|
1 | This work was packaged for Debian by: | |
2 | ||
3 | Xiangfu Liu <xiangfu@sharism.cc> on Mon, 22 Jun 2009 22:48:14 +0800 | |
4 | ||
5 | It was downloaded from: | |
6 | ||
7 | http://projects.qi-hardware.com/index.php/p/xburst-tools/ | |
8 | ||
9 | Upstream Author(s): | |
10 | ||
11 | Wolfgang Spraul <wolfgang@sharism.cc> | |
12 | Marek Lindner <lindner_marek@yahoo.de> | |
13 | Seeger Chin <seeger.chin@gmail.com> | |
14 | Jonathan Nieder <jrnieder@gmail.com> | |
15 | Lucifer at Ingenic Semiconductor Inc. | |
16 | Ingenic Semiconductor Inc. | |
17 | ||
18 | Copyright: | |
19 | ||
20 | Copyright (C) 2010, | |
21 | Xiangfu Liu <xiangfu@sharism.cc> and | |
22 | Qi Hardware Inc, | |
23 | Ingenic Semiconductor Inc. | |
24 | ||
25 | License: | |
26 | ||
27 | This program is free software: you can redistribute it and/or modify | |
28 | it under the terms of the GNU General Public License as published by | |
29 | the Free Software Foundation, either version 3 of the License, or | |
30 | (at your option) any later version. | |
31 | ||
32 | This package is distributed in the hope that it will be useful, | |
33 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
34 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
35 | GNU General Public License for more details. | |
36 | ||
37 | You should have received a copy of the GNU General Public License | |
38 | along with this program. If not, see <http://www.gnu.org/licenses/>. | |
39 | ||
40 | On Debian systems, the complete text of the GNU General | |
41 | Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. | |
42 | ||
43 | The Debian packaging is: | |
44 | ||
45 | Copyright (C) 2010 Xiangfu Liu <xiangfu@sharism.cc> | |
46 | and is licensed under the GPL version 3, see above. | |
47 |
debian/dirs | ||
---|---|---|
1 | usr/bin | |
2 | usr/share/xburst-tools | |
3 | etc/xburst-tools |
debian/docs | ||
---|---|---|
1 | usbboot/README.usbboot | |
2 | xbboot/README.xbboot |
debian/get-orig-source.sh | ||
---|---|---|
1 | #!/bin/sh | |
2 | # Build a tarball from the latest upstream version, with a nice | |
3 | # version number. | |
4 | # | |
5 | # Requires git 1.6.6 or later, GNU date, and gzip. | |
6 | ||
7 | set -e | |
8 | ||
9 | : ${VERSION=201007} | |
10 | ||
11 | [ -f xburst-tools_${VERSION}.tar.bz2 ] || wget http://projects.qi-hardware.com/media/upload/xburst-tools/files/xburst-tools_${VERSION}.tar.bz2 | |
12 | mkdir -p get-orig-source | |
13 | echo `pwd` | |
14 | cd get-orig-source && tar -jxf ../xburst-tools_${VERSION}.tar.bz2 | |
15 | rm -rf get-orig-source/xburst-tools/debian get-orig-source/xburst-tools/.git | |
16 | cd get-orig-source && tar -czf ../../xburst-tools_${VERSION}-1.orig.tar.gz xburst-tools/ | |
17 | rm -rf xburst-tools_${VERSION}.tar.bz2 get-orig-source |
debian/rules | ||
---|---|---|
1 | #!/usr/bin/make -f | |
2 | # This file is in the public domain. | |
3 | # You may freely use, modify, distribute, and relicense it. | |
4 | ||
5 | build clean install binary-arch binary-indep binary: | |
6 | +dh --parallel $(opt_no_act) $@ | |
7 | ||
8 | override_dh_auto_clean: | |
9 | test -e debian/xburst_stage1.bin || { \ | |
10 | echo >&2 see debian/README.source; \ | |
11 | exit 1; \ | |
12 | } | |
13 | dh_auto_clean | |
14 | sh debian/clean.sh | |
15 | ||
16 | override_dh_auto_configure: configure | |
17 | dh_auto_configure -- $(opt_optimize) $(opt_quiet) \ | |
18 | --disable-firmware LDFLAGS=-Wl,-z,defs | |
19 | ||
20 | override_dh_auto_install: | |
21 | dh_auto_install | |
22 | : install firmware from source package | |
23 | dh_install debian/xburst_stage1.bin usr/share/xburst-tools/ | |
24 | dh_install debian/xburst_stage2.bin usr/share/xburst-tools/ | |
25 | dh_install debian/stage1.bin usr/share/xburst-tools/ | |
26 | ||
27 | override_dh_installchangelogs: | |
28 | dh_installchangelogs debian/changelog.upstream | |
29 | ||
30 | opt_optimize = CFLAGS="-g -O2" | |
31 | opt_no_act = | |
32 | opt_quiet = | |
33 | ||
34 | ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) | |
35 | opt_optimize = CFLAGS="-g -O0" | |
36 | endif | |
37 | ||
38 | ifneq (,$(findstring n,$(MAKEFLAGS))) | |
39 | opt_no_act = --no-act | |
40 | endif | |
41 | ||
42 | ifneq (,$(filter quiet,$(DEB_BUILD_OPTIONS))) | |
43 | opt_quiet = --quiet | |
44 | MAKEFLAGS += --quiet | |
45 | endif | |
46 | ||
47 | configure: configure.ac | |
48 | AUTOMAKE="automake --foreign" autoreconf -is | |
49 | ||
50 | firmware: configure | |
51 | ./configure --enable-firmware | |
52 | $(MAKE) -C usbboot/src \ | |
53 | ../xburst_stage1/xburst_stage1.bin \ | |
54 | ../xburst_stage2/xburst_stage2.bin | |
55 | $(MAKE) -C xbboot/host-app \ | |
56 | ../target-stage1/stage1.bin | |
57 | ||
58 | VERSION = 201007 | |
59 | debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST)))) | |
60 | get-orig-source: | |
61 | [ -f xburst-tools_$(VERSION).tar.bz2 ] || wget \ | |
62 | http://projects.qi-hardware.com/media/upload/xburst-tools/files/xburst-tools_$(VERSION).tar.bz2 | |
63 | mkdir -p get-orig-source | |
64 | cd get-orig-source && tar -jxf ../xburst-tools_$(VERSION).tar.bz2 | |
65 | rm -rf get-orig-source/xburst-tools/debian get-orig-source/xburst-tools/.git | |
66 | cd get-orig-source && tar -czf ../../xburst-tools_0.0+$(VERSION).orig.tar.gz . | |
67 | rm -rf xburst-tools_$(VERSION).tar.bz2 get-orig-source |
debian/source/format | ||
---|---|---|
1 | 3.0 (quilt) |
debian/source/include-binaries | ||
---|---|---|
1 | debian/xburst_stage1.bin | |
2 | debian/xburst_stage2.bin | |
3 | debian/stage1.bin |
debian/watch | ||
---|---|---|
1 | version=3 | |
2 | ||
3 | http://projects.qi-hardware.com/media/upload/xburst-tools/files/xburst-tools_(.+).tar.bz2 |
debian/xburst-tools.manpages | ||
---|---|---|
1 | ./usbboot/doc/usbboot.1 | |
2 | ./xbboot/doc/xbboot.1 |