| * (C) Copyright 2007 by OpenMoko, Inc. |
| * Author: Harald Welte <laforge@openmoko.org> |
| * SPDX-License-Identifier: GPL-2.0+ |
| #include "license_data_gz.h" |
| #include "license_data_size.h" |
| static int do_license(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| unsigned long len = data_size; |
| int ret = CMD_RET_SUCCESS; |
| dst = malloc(data_size + 1); |
| ret = gunzip(dst, data_size, (unsigned char *)data_gz, &len); |
| printf("Error uncompressing license text\n"); |
| license, 1, 1, do_license, |
| "print GPL license text", |