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
1This Debian package is developed in a Git repository (see the Vcs-Git field
2of 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
9This requires a mipsel-openwrt-linux- cross-toolchain in your $PATH. You
10can get one by building the development environment from Qi Hardware, for
11example.
12
13  git://projects.qi-hardware.com/openwrt-xburst.git xburst
14
15See the Qi Hardware wiki for details.
16
17  http://en.qi-hardware.com/wiki/Building_Software_Image
18
19To build a released version of this package, no special instructions apply.
20“dpkg-buildpackage” or “apt-get -b source xburst-tools” should work as
21usual.
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
9set -e
10
11dpkg-parsechangelog --format rfc822 --all |
12    awk -f debian/changelog.upstream.awk
13
14debian/rules firmware
15cp -f usbboot/xburst_stage1/xburst_stage1.bin debian/
16cp -f usbboot/xburst_stage2/xburst_stage2.bin debian/
17cp -f xbboot/target-stage1/stage1.bin debian/
debian/changelog
1xburst-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.
14function 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.
24function 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.
41function 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
58BEGIN {
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.
67function 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
111END {
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
9set -e
10
11splitgitignore='#!/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
39offlimits="-type d -name '.*' -prune -o -type d -name debian -prune"
40
41remove_file_globs() {
42    while read glob
43    do
44        eval "rm -f $glob"
45    done
46}
47
48remove_directory_globs() {
49    while read glob
50    do
51        eval "rm -fr $glob"
52    done
53}
54
55remove_file_findpatterns() {
56    while read pat
57    do
58        find . $offlimits -o \
59            '(' -name "$pat" -execdir rm -f '{}' + ')'
60    done
61}
62
63remove_directory_findpatterns() {
64    while read pat
65    do
66        find . $offlimits -o \
67            '(' -type d -name "$pat" -execdir rm -fr '{}' + ')'
68    done
69}
70
71find . $offlimits -o '(' -name .gitignore -print ')' |
72while read file
73do
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"
108done
debian/compat
17
debian/control
1Source: xburst-tools
2Section: misc
3Priority: extra
4Maintainer: Xiangfu Liu <xiangfu@sharism.cc>
5Build-Depends: debhelper (>= 7.4.10),
6    pkg-config, autoconf, automake,
7    libusb-dev, libconfuse-dev
8Build-Conflicts: automake1.4
9Standards-Version: 3.9.1
10Vcs-Git: git://projects.qi-hardware.com/xburst-tools.git
11Vcs-Browser: http://projects.qi-hardware.com/index.php/p/xburst-tools/source/changes/master/
12Homepage: http://projects.qi-hardware.com/index.php/p/xburst-tools/
13
14Package: xburst-tools
15Architecture: any
16Depends: ${shlibs:Depends}, ${misc:Depends}
17Description: 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
1This work was packaged for Debian by:
2
3    Xiangfu Liu <xiangfu@sharism.cc> on Mon, 22 Jun 2009 22:48:14 +0800
4
5It was downloaded from:
6
7    http://projects.qi-hardware.com/index.php/p/xburst-tools/
8
9Upstream 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
18Copyright:
19
20    Copyright (C) 2010,
21    Xiangfu Liu <xiangfu@sharism.cc> and
22    Qi Hardware Inc,
23    Ingenic Semiconductor Inc.
24
25License:
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
40On Debian systems, the complete text of the GNU General
41Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
42
43The Debian packaging is:
44
45    Copyright (C) 2010 Xiangfu Liu <xiangfu@sharism.cc>
46and is licensed under the GPL version 3, see above.
47
debian/dirs
1usr/bin
2usr/share/xburst-tools
3etc/xburst-tools
debian/docs
1usbboot/README.usbboot
2xbboot/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
7set -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
12mkdir -p get-orig-source
13echo `pwd`
14cd get-orig-source && tar -jxf ../xburst-tools_${VERSION}.tar.bz2
15rm -rf get-orig-source/xburst-tools/debian get-orig-source/xburst-tools/.git
16cd get-orig-source && tar -czf ../../xburst-tools_${VERSION}-1.orig.tar.gz xburst-tools/
17rm -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
5build clean install binary-arch binary-indep binary:
6    +dh --parallel $(opt_no_act) $@
7
8override_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
16override_dh_auto_configure: configure
17    dh_auto_configure -- $(opt_optimize) $(opt_quiet) \
18        --disable-firmware LDFLAGS=-Wl,-z,defs
19
20override_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
27override_dh_installchangelogs:
28    dh_installchangelogs debian/changelog.upstream
29
30opt_optimize = CFLAGS="-g -O2"
31opt_no_act =
32opt_quiet =
33
34ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
35    opt_optimize = CFLAGS="-g -O0"
36endif
37
38ifneq (,$(findstring n,$(MAKEFLAGS)))
39    opt_no_act = --no-act
40endif
41
42ifneq (,$(filter quiet,$(DEB_BUILD_OPTIONS)))
43    opt_quiet = --quiet
44    MAKEFLAGS += --quiet
45endif
46
47configure: configure.ac
48    AUTOMAKE="automake --foreign" autoreconf -is
49
50firmware: 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
58VERSION = 201007
59debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST))))
60get-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
13.0 (quilt)
debian/source/include-binaries
1debian/xburst_stage1.bin
2debian/xburst_stage2.bin
3debian/stage1.bin
debian/watch
1version=3
2
3http://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

Archive Download the corresponding diff file



interactive