]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - cmd/config.c
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2017 Masahiro Yamada <yamada.masahiro@socionext.com>
10 #include "config_data_gz.h"
11 #include "config_data_size.h"
13 static int do_config(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
16 unsigned long len
= data_size
;
17 int ret
= CMD_RET_SUCCESS
;
19 dst
= malloc(data_size
+ 1);
21 return CMD_RET_FAILURE
;
23 ret
= gunzip(dst
, data_size
, (unsigned char *)data_gz
, &len
);
25 printf("failed to uncompress .config data\n");
26 ret
= CMD_RET_FAILURE
;
40 config
, 1, 1, do_config
,