--- x-loader-1.4.3git20100531.orig/debian/signGP.c +++ x-loader-1.4.3git20100531/debian/signGP.c @@ -0,0 +1,73 @@ +// +// signGP.c +// Read the x-load.bin file and write out the x-load.bin.ift file. +// The signed image is the original pre-pended with the size of the image +// and the load address. If not entered on command line, file name is +// assumed to be x-load.bin in current directory and load address is +// 0x40200800. + +#include +#include +#include +#include +#include +#include + + +main(int argc, char *argv[]) +{ + int i; + char ifname[FILENAME_MAX], ofname[FILENAME_MAX], ch; + FILE *ifile, *ofile; + unsigned long loadaddr, len; + struct stat sinfo; + + + // Default to x-load.bin and 0x40200800. + strcpy(ifname, "x-load.bin"); + loadaddr = 0x40200800; + + if ((argc == 2) || (argc == 3)) + strcpy(ifname, argv[1]); + + if (argc == 3) + loadaddr = strtol(argv[2], NULL, 16); + + // Form the output file name. + strcpy(ofname, ifname); + strcat(ofname, ".ift"); + + // Open the input file. + ifile = fopen(ifname, "rb"); + if (ifile == NULL) { + printf("Cannot open %s\n", ifname); + exit(0); + } + + // Get file length. + stat(ifname, &sinfo); + len = sinfo.st_size; + + // Open the output file and write it. + ofile = fopen(ofname, "wb"); + if (ofile == NULL) { + printf("Cannot open %s\n", ofname); + fclose(ifile); + exit(0); + } + + // Pad 1 sector of zeroes. + //ch = 0x00; + //for (i=0; i<0x200; i++) + // fwrite(&ch, 1, 1, ofile); + + fwrite(&len, 1, 4, ofile); + fwrite(&loadaddr, 1, 4, ofile); + for (i=0; i Tue, 01 Jun 2010 11:42:31 +0200 + +x-loader (1.4.3git20100305-0ubuntu1) maverick; urgency=low + + * update to new upstream with beagle XM support + + -- Oliver Grawert Tue, 01 Jun 2010 11:38:43 +0200 + +x-loader (1.4.3git20100305-0ubuntu5) lucid; urgency=low + + * Remove leftover debug arch in control. + + -- Loïc Minier Wed, 24 Mar 2010 21:41:43 +0100 + +x-loader (1.4.3git20100305-0ubuntu4) lucid; urgency=low + + * Also pass CROSS_COMPILE to make as just exporting it isn't enough. + + -- Loïc Minier Wed, 24 Mar 2010 20:34:29 +0100 + +x-loader (1.4.3git20100305-0ubuntu3) lucid; urgency=low + + * Move signGP.c from a patch to a file in debian/. + * Drop boilerplate from rules. + * Add mention of signGP.c homepage to copyright; it might be GPLv2 but this + is not certain. + * Drop bogus $(sh) in rules. + * List files to clean in debian/clean. + * Set priority to optional. + * Set CROSS_COMPILE= to $(DEB_HOST_GNU_TYPE)- when DEB_HOST_GNU_TYPE and + DEB_BUILD_GNU_TYPE differ and also export it (albeit empty) when + they are equal; this fixes cross-compilation and allows dropping patch + no_cross_compile.diff. + * rules: the upstream build passes LDFLAGS directly to ld instead of calling + gcc for linking; so instead of passing -Wl,foo in LDFLAGS as in automake + builds, one should set LDFLAGS to foo directly; add some Makefile to foo + to convert the flags on the fly. + * Pass CC="$(CROSS_COMPILE)gcc $(CFLAGS)" HOST_CC="gcc $(CFLAGS)" to the + build as to pass our CFLAGS; add -fno-stack-protector to CFLAGS in rules + and drop no_patch_protector.diff patch. + + -- Loïc Minier Wed, 24 Mar 2010 17:25:44 +0100 + +x-loader (1.4.3git20100305-0ubuntu2) lucid; urgency=low + + * adjust debian/rules to use proper overrides + * adjust debian/x-loader-omap.install accordingly + * add debhelper 7.0.50~ build-dep for using overrides + + -- Oliver Grawert Tue, 23 Mar 2010 15:55:54 +0100 + +x-loader (1.4.3git20100305-0ubuntu1) lucid; urgency=low + + * Initial release (LP: #542662) + + -- Oliver Grawert Sat, 20 Mar 2010 09:51:26 +0000 --- x-loader-1.4.3git20100531.orig/debian/compat +++ x-loader-1.4.3git20100531/debian/compat @@ -0,0 +1 @@ +7 --- x-loader-1.4.3git20100531.orig/debian/README.source +++ x-loader-1.4.3git20100531/debian/README.source @@ -0,0 +1,17 @@ +x-loader for Debian +------------------- + + + +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. Please see: + + /usr/share/doc/quilt/README.source + +for more information on how to apply the patches, modify patches, or +remove a patch. + + + --- x-loader-1.4.3git20100531.orig/debian/rules +++ x-loader-1.4.3git20100531/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +# the upstream build passes LDFLAGS directly to ld instead of calling gcc for +# linking; so instead of passing -Wl,foo in LDFLAGS as in automake builds, one +# should set LDFLAGS to foo directly +comma := , +LDFLAGS := $(patsubst -Wl$(comma)%,%,$(LDFLAGS)) + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +CROSS_COMPILE := +else +CROSS_COMPILE := $(DEB_HOST_GNU_TYPE)- +endif + +CFLAGS += -fno-stack-protector + +%: + dh --with quilt $@ + +override_dh_auto_configure: + $(MAKE) omap3530beagle_config + +override_dh_auto_build: + dh_auto_build -- CROSS_COMPILE="$(CROSS_COMPILE)" CC="$(CROSS_COMPILE)gcc $(CFLAGS)" HOST_CC="gcc $(CFLAGS)" + $(CC) -o debian/signGP debian/signGP.c + debian/signGP x-load.bin + +override_dh_auto_install: + install -D -m644 x-load.bin.ift debian/tmp/usr/lib/x-loader-omap/MLO + install -D -m644 x-load.bin debian/tmp/usr/lib/x-loader-omap/x-load.bin + --- x-loader-1.4.3git20100531.orig/debian/docs +++ x-loader-1.4.3git20100531/debian/docs @@ -0,0 +1 @@ +README --- x-loader-1.4.3git20100531.orig/debian/clean +++ x-loader-1.4.3git20100531/debian/clean @@ -0,0 +1,2 @@ +debian/signGP +x-load.bin.ift --- x-loader-1.4.3git20100531.orig/debian/copyright +++ x-loader-1.4.3git20100531/debian/copyright @@ -0,0 +1,84 @@ +This work was packaged for Debian by: + + Oliver Grawert on Sat, 20 Mar 2010 09:51:26 +0000 + +It was downloaded from: + + http://gitorious.org/x-load-omap3/mainline/commits/master + +debian/signGP.c was downloaded from +http://beagleboard.googlecode.com/files/signGP.c. According to Oliver Grawert, +jkrindner told him this is under GPLv2 but this should be clarified. + +Upstream Authors: + + Wolfgang Denk, DENX Software Engineering, wd@denx.de. + Jian Zhang + Steve Sakoman + +Copyright: + + Copyright (C) 2004-2006, Texas Instruments, + Jian Zhang + Copyright (C) 2000-2004 + Wolfgang Denk, DENX Software Engineering, wd@denx.de. + +License: + + This package 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; either version 2 of the License, or + (at your option) any later version. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is: + + Copyright (C) 2010 Oliver Grawert + +you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +The file include/malloc.h is distributed under the +http://creativecommons.org/licenses/publicdomain/ license: + + Copyright (C) Doug Lea + +The person or persons who have associated work with this document +(the "Dedicator" or "Certifier") hereby either (a) certifies that, to +the best of his knowledge, the work of authorship identified is in the +public domain of the country from which the work is published, or (b) +hereby dedicates whatever copyright the dedicators holds in the work of +authorship identified below (the "Work") to the public domain. A certifier, +moreover, dedicates any copyright interest he may have in the associated +work, and for these purposes, is described as a "dedicator" below. + +A certifier has taken reasonable steps to verify the copyright status of +this work. Certifier recognizes that his good faith efforts may not shield +him from liability if in fact the work certified is not in the public domain. + +Dedicator makes this dedication for the benefit of the public at large and +to the detriment of the Dedicator's heirs and successors. Dedicator intends +this dedication to be an overt act of relinquishment in perpetuity of all +present and future rights under copyright law, whether vested or contingent, +in the Work. Dedicator understands that such relinquishment of all rights +includes the relinquishment of all rights to enforce +(by lawsuit or otherwise) those copyrights in the Work. + +Dedicator recognizes that, once placed in the public domain, the Work may be +freely reproduced, distributed, transmitted, used, modified, built upon, or +otherwise exploited by anyone for any purpose, commercial or non-commercial, +and in any way, including by methods that have not yet been invented +or conceived. --- x-loader-1.4.3git20100531.orig/debian/control +++ x-loader-1.4.3git20100531/debian/control @@ -0,0 +1,14 @@ +Source: x-loader +Section: misc +Priority: optional +Maintainer: Oliver Grawert +Build-Depends: quilt (>= 0.46-7~), debhelper (>= 7.0.50~) +Standards-Version: 3.8.4 + +Package: x-loader-omap +Architecture: armel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Board initialization helper for TI OMAP CPUs + TI x-loader initializes OMAP based boards to get the hardware + to a stage where it is possible to load and initialize a + bootloader (i.e. the commonly used u-boot) --- x-loader-1.4.3git20100531.orig/debian/patches/series +++ x-loader-1.4.3git20100531/debian/patches/series @@ -0,0 +1 @@ +