]>
git.ipfire.org Git - people/ms/u-boot.git/blob - cmd/license.c
2 * (C) Copyright 2007 by OpenMoko, Inc.
3 * Author: Harald Welte <laforge@openmoko.org>
5 * SPDX-License-Identifier: GPL-2.0+
12 #include "license_data_gz.h"
13 #include "license_data_size.h"
15 static int do_license(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
18 unsigned long len
= data_size
;
19 int ret
= CMD_RET_SUCCESS
;
21 dst
= malloc(data_size
+ 1);
23 return CMD_RET_FAILURE
;
25 ret
= gunzip(dst
, data_size
, (unsigned char *)data_gz
, &len
);
27 printf("Error uncompressing license text\n");
28 ret
= CMD_RET_FAILURE
;
42 license
, 1, 1, do_license
,
43 "print GPL license text",