Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
e1094bb4
Commit
e1094bb4
authored
Aug 31, 2013
by
Eddy Beaupre
Committed by
Alejandro Mery
Jun 02, 2014
Browse files
Add debian package creator.
parent
6008951c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
e1094bb4
...
...
@@ -9,7 +9,7 @@ exampledir = $(datarootdir)/doc/@PACKAGE@
example_DATA
=
$(BINARIES)
bin/fel-sdboot.sunxi bin/jtag-loop.sunxi bin/ramboot.scr bin/ramboot.uboot-sh README
fexc_SOURCES
=
bootinfo.c fel-copy.c fel-sdboot.c jtag-loop.c phoenix_info.c script_bin.c script_fex.c fel.c fel-pio.c fexc.c nand-part.c pio.c script.c script_uboot.c common.h fexc.h nand-part-a20.h nand-part.h script_bin.h script_fex.h script.h script_uboot.h include/endian_compat.h include/types.h
EXTRA_DIST
=
boot_head.S jtag-loop.S boot_head.lds fel-pio.lds fel-sdboot.lds jtag-loop.lds sunxi-tools.7 adb-devprobe.sh fel-gpio usb-boot bin/fel-pio.bin bin/fel-pio.nm bin/fel-sdboot.sunxi bin/jtag-loop.sunxi bin/ramboot.scr bin/ramboot.uboot-sh
EXTRA_DIST
=
boot_head.S jtag-loop.S boot_head.lds fel-pio.lds fel-sdboot.lds jtag-loop.lds sunxi-tools.7 adb-devprobe.sh fel-gpio usb-boot bin/fel-pio.bin bin/fel-pio.nm bin/fel-sdboot.sunxi bin/jtag-loop.sunxi bin/ramboot.scr bin/ramboot.uboot-sh
makedeb
nodist_bin2fex_SOURCES
=
bin2fex.c
nodist_fex2bin_SOURCES
=
fex2bin.c
...
...
@@ -20,7 +20,7 @@ man_MANS = sunxi-tools.7
CROSS_COMPILE
?=
arm-none-eabi-
clean-local
:
rm
-f
boot_head_sun4i.elf boot_head_sun5i.elf fel-sdboot.elf fel-pio.elf fel-pio.nm jtag-loop.elf boot_head_sun4i.bin boot_head_sun5i.bin fel-sdboot.bin fel-pio.bin jtag-loop.bin
*
~
rm
-f
boot_head_sun4i.elf boot_head_sun5i.elf fel-sdboot.elf fel-pio.elf fel-pio.nm jtag-loop.elf boot_head_sun4i.bin boot_head_sun5i.bin fel-sdboot.bin fel-pio.bin jtag-loop.bin
*
~
*
.deb
fexc
:
fexc.h script.h script.c script_uboot.h script_uboot.c script_bin.h script_bin.c script_fex.h script_fex.c
...
...
@@ -86,6 +86,9 @@ boot_head_sun5i.bin: boot_head_sun5i.elf
bootinfo
:
bootinfo.c
dpkg-deb
:
./makedeb
.gitignore
:
Makefile
@
for
x
in
$(TOOLS)
$(BINARIES)
'*.o'
'*.swp'
'*~'
'.deps/*'
Makefile.in /autom4te.cache /aclocal.m4 /compile /configure /depcomp /install-sh /missing
;
do
\
echo
"
$$
x"
;
\
...
...
makedeb
0 → 100755
View file @
e1094bb4
#!/bin/bash
WRKDIR
=
"
`
pwd
`
"
rm
-rf
dpkg
mkdir
-p
dpkg
#make distclean
#./configure
make dist-gzip
mv
sunxi-tools-1.0.tar.gz dpkg/sunxi-tools_1.0.orig.tar.gz
cd
dpkg
tar
-xzvf
sunxi-tools_1.0.orig.tar.gz
cd
sunxi-tools-1.0
mkdir
debian
echo
"sunxi-tools (1.0-1) UNRELEASED; urgency=low"
>
debian/changelog
git log
-1
--pretty
=
format:
'%n * %s%n%n -- %cn <%ce> %cD%n'
>>
debian/changelog
echo
"9"
>
debian/compat
cat
>
debian/control
<<
EOF
Source: sunxi-tools
Maintainer:
${
DEBFULLNAME
}
<
${
DEBEMAIL
}
>
Section: misc
Priority: optional
Standards-Version: 3.9.4
Build-Depends: debhelper (>= 8)
Package: sunxi-tools
Architecture: any
Depends:
\$
{shlibs:Depends},
\$
{misc:Depends}
Description: Tools to help hacking Allwinner A10/A20 based devices
Tools to help hacking Allwinner A10 (aka sun4i) based devices and possibly
it's successors, that's why the 'x' in the package name.
EOF
cat
>
debian/copyright
<<
EOF
sunxi-tools Copyright (C) 2012 Alejandro Mery <amery@geeks.cl>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 dated June, 1991.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301, USA.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in /usr/share/common-licenses/GPL-2.
EOF
cat
>
debian/rules
<<
EOF
#!/usr/bin/make -f
%:
dh
\$
@
EOF
chmod
755 debian/rules
mkdir
-p
debian/source
echo
"3.0 (quilt)"
>
debian/source/format
debuild
-us
-uc
cd
${
WRKDIR
}
mv
dpkg/
*
.deb
.
rm
-rf
dpkg
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment