Date:2010-08-03 17:50:56 (8 years 9 months ago)
Author:Xiangfu Liu
Commit:71ed21efe5da30853db9baf560fe9b330b7b44e7
Message:create debian branch only for make debian package.

[master] branch is for the source code develop
[debian] branch is for keep debian package code.

becuase other system like gentoo arch doesn't need the "debian/" folder.

Signed-off-by: Xiangfu Liu <xiangfu@openmobilefree.net>
Acked-by: Li Danbing <lidaobing@gmail.com>
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/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/master
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-0.1) lucid; urgency=low
2
3  * Initial release. (Closes: #535429)
4
5 -- xiangfu <xiangfu@sharism.cc> Tue, 03 Aug 2010 00:01:38 +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.8.4
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 package was debianized by Xiangfu Liu<xiangfu@sharism.cc> on
2Mon, 22 Jun 2009 22:48:14 +0800.
3
4It was downloaded from <http://projects.qi-hardware.com/index.php/p/xburst-tools>
5
6Upstream Author: Xiangfu Liu <xiangfu@sharism.cc> and
7    Wolfgang Spraul <wolfgang@sharism.cc>
8    Marek Lindner <lindner_marek@yahoo.de>
9    Ingenic Semiconductor Inc.
10    Lucifer at Ingenic Semiconductor Inc.
11    Seeger Chin <seeger.chin@gmail.com>
12
13
14The Debian packaging is copyright 2009, 2010
15    Xiangfu Liu<xiangfu@sharism.cc> and
16    Jonathan Nieder <jrnieder@gmail.com>
17is licensed under the GPL, see `/usr/share/common-licenses/GPL-3'.
18
19You are free to distribute this software under the terms of
20the GNU General Public License either version 3 of the License,
21or (at your option) any later version.
22On Debian systems, the complete text of the GNU General Public
23License can be found in the file `/usr/share/common-licenses/GPL-3'.
24
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: ${REPO=$(git rev-parse --git-dir)}
10: ${BRANCH=remotes/origin/master}
11
12mkdir debian-orig-source
13trap 'rm -fr debian-orig-source || exit 1' EXIT INT TERM
14
15git init -q debian-orig-source
16GIT_DIR=$(pwd)/debian-orig-source/.git
17export GIT_DIR
18
19# Fetch latest upstream version.
20git fetch -q "$REPO" "$BRANCH"
21
22# Determine version number.
23release=0.0
24date=$(date --utc --date="$(git log -1 --pretty=format:%cD FETCH_HEAD)" "+%Y%m")
25upstream_version="${release}+${date}"
26
27# Generate tarball.
28echo "packaging $(git rev-parse --short FETCH_HEAD)"
29git archive FETCH_HEAD |
30    gzip -n -9 >"xburst-tools_$upstream_version.orig.tar.gz"
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
58REPO = git://projects.qi-hardware.com/xburst-tools.git
59BRANCH = master
60debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST))))
61get-orig-source:
62    REPO='$(REPO)' BRANCH='$(BRANCH)' \
63        sh '$(debiandir_SQ)'get-orig-source.sh
debian/source/format
13.0 (quilt)
debian/source/include-binaries
1debian/xburst_stage1.bin
2debian/xburst_stage2.bin
3debian/stage1.bin
debian/xburst-tools.manpages
1./usbboot/doc/usbboot.1
2./xbboot/doc/xbboot.1

Archive Download the corresponding diff file



interactive