From 632175802e3d6c3265aa6f511a5aa400d00953d1 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 29 Oct 2012 16:52:36 -0700 Subject: cbfstool: Rework to use getopt style parameters - Adding more and more optional and non-optional parameters bloated cbfstool and made the code hard to read with a lot of parsing in the actual cbfs handling functions. This change switches over to use getopt style options for everything but command and cbfs file name. - This allows us to simplify the coreboot Makefiles a bit - Also, add guards to include files - Fix some 80+ character lines - Add more detailed error reporting - Free memory we're allocating Signed-off-by: Stefan Reinauer Change-Id: Ia9137942deb8d26bbb30068e6de72466afe9b0a7 Reviewed-on: http://review.coreboot.org/1800 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- Makefile.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Makefile.inc') diff --git a/Makefile.inc b/Makefile.inc index f85bbda..2a5e821 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -136,16 +136,14 @@ cbfs-files-handler= \ ####################################################################### # a variety of flags for our build -CBFS_COMPRESS_FLAG:= +CBFS_COMPRESS_FLAG:=none ifeq ($(CONFIG_COMPRESS_RAMSTAGE),y) -CBFS_COMPRESS_FLAG:=l +CBFS_COMPRESS_FLAG:=LZMA endif -CBFS_PAYLOAD_COMPRESS_FLAG:= -CBFS_PAYLOAD_COMPRESS_NAME:=none +CBFS_PAYLOAD_COMPRESS_FLAG:=none ifeq ($(CONFIG_COMPRESSED_PAYLOAD_LZMA),y) -CBFS_PAYLOAD_COMPRESS_FLAG:=l -CBFS_PAYLOAD_COMPRESS_NAME:=LZMA +CBFS_PAYLOAD_COMPRESS_FLAG:=LZMA endif ifneq ($(CONFIG_LOCALVERSION),"") -- cgit v1.1