]>
git.ipfire.org Git - people/ms/u-boot.git/blob - cmd/config.c
2 * Copyright (C) 2017 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * SPDX-License-Identifier: GPL-2.0+
11 #include "config_data_gz.h"
12 #include "config_data_size.h"
14 static int do_config(cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
17 unsigned long len
= data_size
;
18 int ret
= CMD_RET_SUCCESS
;
20 dst
= malloc(data_size
+ 1);
22 return CMD_RET_FAILURE
;
24 ret
= gunzip(dst
, data_size
, (unsigned char *)data_gz
, &len
);
26 printf("failed to uncompress .config data\n");
27 ret
= CMD_RET_FAILURE
;
41 config
, 1, 1, do_config
,