1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2007 by OpenMoko, Inc.
4 * Author: Harald Welte <laforge@openmoko.org>
12 #include "license_data_gz.h"
13 #include "license_data_size.h"
15 static int do_license(struct cmd_tbl *cmdtp, int flag, int argc,
19 unsigned long len = data_size;
20 int ret = CMD_RET_SUCCESS;
22 dst = malloc(data_size + 1);
24 return CMD_RET_FAILURE;
26 ret = gunzip(dst, data_size, (unsigned char *)data_gz, &len);
28 printf("Error uncompressing license text\n");
29 ret = CMD_RET_FAILURE;
43 license, 1, 1, do_license,
44 "print GPL license text",