Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rpi-image-gen
Upstream-Contact: https://github.com/raspberrypi/rpi-image-gen/issues
Source: https://github.com/raspberrypi/rpi-image-gen
Comment:
 The upstream source ships one prebuilt binary whose source is not present in
 the tree: contrib/src/cm5-programming-jig/pkgs/rpi-preseed_0.1.0_all.deb.
 It is not installed into any binary package; see debian/rules and
 debian/README.Debian. If this package is ever submitted to Debian proper the
 orig tarball should be repacked with Files-Excluded to drop it.

Files: *
Copyright: 2015-2024 Raspberry Pi (Trading) Ltd.
License: BSD-3-Clause

Files: genimage/*
Copyright: 2011-2024 Pengutronix e.K.
           2011-2018 Sascha Hauer <s.hauer@pengutronix.de>
           2012-2021 Michael Olbrich <m.olbrich@pengutronix.de>
           2014 Juergen Beisert <jbe@pengutronix.de>
           2016 Julien Viard de Galbert <julien.viarddegalbert@openwide.fr>
           2018 Alexandre Fournier <alexandre.fournier@kiplink.fr>, Kiplink
License: GPL-2
Comment:
 genimage 20, the version package/genimage pins, shipped as the supplementary
 orig tarball rpi-image-gen_2.9.0.orig-genimage.tar.gz and built by
 debian/rules into rpi-image-gen-host.

Files: package/genimage/patches/*
Copyright: 2025 Tobias Waldekranz <tobias@waldekranz.com>, Wires
           2025 Phil Elwell <phil@raspberrypi.com>
           2024 Andreas Ziegler <15275159+aeolio@users.noreply.github.com>
License: GPL-2
Comment:
 Applied to the genimage component above by debian/rules. Only the series for
 the pinned version is used: the verity handlers in patches/19 are upstream as
 of genimage 20, which leaves one size-estimation fix. They are data as far as this
 package is concerned: nothing here compiles them.

Files: erofs-utils/*
Copyright: 2018-2019, 2021-2022 HUAWEI, Inc.
           2019-2025 Gao Xiang <xiang@kernel.org>
           2021 Google LLC
           2021 Daeho Jeong <daehojeong@google.com>
           2021 Guo Xuenan <guoxuenan@huawei.com>
           2025 Chengyu Zhu <hudsonzhu@tencent.com>
License: MIT
Comment:
 erofs-utils 1.9.4, the version package/erofs-utils pins, shipped as the
 supplementary orig tarball rpi-image-gen_2.9.0.orig-erofs-utils.tar.gz and
 built by debian/rules into rpi-image-gen-host. Only mkfs.erofs reaches the
 binary package.
 .
 Upstream's COPYING sets the split these stanzas encode: liberofs, under
 lib/ and include/, is dual GPL-2.0+ OR MIT so that parts can be shared with
 the Linux kernel; everything else is MIT alone, mkfs/main.c included. The
 stanzas that follow are the files that depart from one side or the other.

Files: erofs-utils/lib/*
       erofs-utils/include/*
Copyright: 2018-2025 HUAWEI, Inc.
           2021-2026 Alibaba Cloud
           2025-2026 Tencent, Inc.
           2008-2021 OPPO Mobile Comm Corp., Ltd.
           2021-2022 Coolpad Group Limited
           2021-2023 Gao Xiang <xiang@kernel.org>
           2020 Gao Xiang <hsiangkao@aol.com>
           2019 Li Guifu <blucerlee@gmail.com>
           2023 Norbert Lange <nolange79@gmail.com>
License: GPL-2+ or MIT

Files: erofs-utils/include/erofs_fs.h
Copyright: 2017-2018 HUAWEI, Inc.
           2021 Alibaba Cloud
License: MIT
Comment:
 The on-disk format definition: under include/, but MIT alone rather than
 dual.

Files: erofs-utils/lib/hashmap.c
       erofs-utils/include/erofs/hashmap.h
       erofs-utils/include/erofs/flex-array.h
Copyright: none claimed
License: GPL-2
Comment:
 GPL-2.0 only rather than dual, and carrying no copyright notice: the two
 hashmap files record only "Copied from https://github.com/git/git.git", and
 flex-array.h states no provenance at all. They are linked into mkfs.erofs,
 so the binary this package ships is GPL-2 as a whole even though most of its
 source is more liberal.

Files: erofs-utils/lib/sha256.c
Copyright: none claimed
License: Unlicense
Comment:
 Public domain, per its SPDX-License-Identifier; adapted from LibTomCrypt.

Files: erofs-utils/lib/xxhash.c
Copyright: 2012-2016 Yann Collet
License: BSD-2-Clause or GPL-2

Files: erofs-utils/lib/liberofs_xxhash.h
Copyright: none claimed
License: BSD-2-Clause or GPL-2+
Comment:
 The header accompanying lib/xxhash.c, and carrying no copyright notice of
 its own. Note the GPL side is 2.0+ here where xxhash.c is 2.0 only.

Files: package/erofs-utils/patches/*
Copyright: 2026 Matthew Lear <matthew.lear@raspberrypi.com>
License: GPL-2+ or MIT
Comment:
 Applied to the erofs-utils component above by debian/rules, which uses only
 the series matching the pinned version. They take the licence of lib/gzran.c,
 the file they patch, and are data as far as this package is concerned:
 nothing here compiles them.

Files: bdebstrap/*
Copyright: 2019-2022 Benjamin Drung <bdrung@posteo.de>
License: ISC
Comment:
 bdebstrap 0.7.0, the version package/bdebstrap pins, shipped as the
 supplementary orig tarball rpi-image-gen_2.9.0.orig-bdebstrap.tar.gz and
 built by debian/rules. Only the bdebstrap script and its hooks reach the
 binary package.

Files: package/bdebstrap/patches/*
Copyright: 2025 Matthew Lear <matthew.lear@raspberrypi.com>
           2025 Raspberry Pi (Trading) Ltd.
License: ISC
Comment:
 Applied to the bdebstrap component above by debian/rules. Upstream applies
 the same series when it builds its own copy at image build time.

Files: keydir/*.gpg
Copyright: Raspberry Pi (Trading) Ltd.
License: BSD-3-Clause
Comment:
 OpenPGP public keyrings for the Raspberry Pi and Raspbian archives, copied
 into a built image so apt can verify those archives. These are public keys,
 not software; there is no preferred form for modification.

Files: docs/schemas/*/schema_doc.min.js
       docs/schemas/*/schema_doc.css
Copyright: 2019 Coveo Solutions Inc.
License: Apache-2.0
Comment:
 Stock assets emitted by json-schema-for-humans
 (https://github.com/coveooss/json-schema-for-humans) when upstream renders
 the JSON schema reference pages. The .min.js is minified; its source is in
 that project, not in this tree. The schema pages are readable without it -
 it only drives the expand/collapse and anchor behaviour.

Files: debian/*
Copyright: 2026 Richard Oliver <richard.oliver@raspberrypi.com>
License: BSD-3-Clause

License: BSD-3-Clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
 1. Redistributions of source code must retain the above copyright notice,
 this list of conditions and the following disclaimer.
 .
 2. Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.
 .
 3. Neither the name of the copyright holder nor the names of its contributors
 may be used to endorse or promote products derived from this software without
 specific prior written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.

License: GPL-2
 This program is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License version 2 as published by
 the Free Software Foundation.
 .
 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.
 .
 On Debian systems, the complete text of the GNU General Public License
 version 2 can be found in /usr/share/common-licenses/GPL-2.

License: GPL-2+
 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; either version 2 of the License, or (at your option) any
 later version.
 .
 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.
 .
 On Debian systems, the complete text of the GNU General Public License
 version 2 can be found in /usr/share/common-licenses/GPL-2.

License: BSD-2-Clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
   * Redistributions of source code must retain the above copyright notice,
     this list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.

License: MIT
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to
 deal in the Software without restriction, including without limitation the
 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 sell copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 IN THE SOFTWARE.

License: Unlicense
 This is free and unencumbered software released into the public domain.
 .
 Anyone is free to copy, modify, publish, use, compile, sell, or distribute
 this software, either in source code form or as a compiled binary, for any
 purpose, commercial or non-commercial, and by any means.
 .
 In jurisdictions that recognize copyright laws, the author or authors of
 this software dedicate any and all copyright interest in the software to the
 public domain. We make this dedication for the benefit of the public at
 large and to the detriment of our heirs and successors. We intend this
 dedication to be an overt act of relinquishment in perpetuity of all present
 and future rights to this software under copyright law.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 .
 For more information, please refer to <https://unlicense.org/>

License: ISC
 Permission to use, copy, modify, and/or distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
 copyright notice and this permission notice appear in all copies.
 .
 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 PERFORMANCE OF THIS SOFTWARE.

License: Apache-2.0
 Licensed under the Apache License, Version 2.0 (the "License"); you may not
 use this file except in compliance with the License. You may obtain a copy
 of the License at
 .
     https://www.apache.org/licenses/LICENSE-2.0
 .
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 License for the specific language governing permissions and limitations
 under the License.
 .
 On Debian systems, the complete text of the Apache License version 2.0 can
 be found in /usr/share/common-licenses/Apache-2.0.
