]>
git.ipfire.org Git - people/ms/u-boot.git/blob - common/cmd_license.c
2 * (C) Copyright 2007 by OpenMoko, Inc.
3 * Author: Harald Welte <laforge@openmoko.org>
5 * SPDX-License-Identifier: GPL-2.0+
10 /* COPYING is currently 15951 bytes in size */
11 #define LICENSE_MAX 20480
17 int do_license(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
19 char *tok
, *dst
= malloc(LICENSE_MAX
);
20 unsigned long len
= LICENSE_MAX
;
25 if (gunzip(dst
, LICENSE_MAX
, license_gz
, &len
) != 0) {
26 printf("Error uncompressing license text\n");
37 license
, 1, 1, do_license
,
38 "print GPL license text",