util/cbfstool: Replace swab.h with commonlib/bsd/sysincludes.h
Instead of maintaining another set of byteswapping functions in cbfstool, this change removes swab.h and replaces it with bsd/sysincludes.h from commonlib. Callers have been updated to use be32toh/be64toh/htobe32/htobe64 instead of ntohl/ntohll/htonl/htonll respectively. Change-Id: I54195865ab4042fcf83609fcf67ef8f33994d68e Signed-off-by: Alex James <theracermaster@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60233 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Julius Werner
parent
f6e74c45c0
commit
02001a38be
@@ -10,11 +10,10 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include <commonlib/bsd/cbfs_serialized.h>
|
||||
#include <commonlib/bsd/sysincludes.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <console/console.h>
|
||||
|
||||
#include "swab.h"
|
||||
|
||||
/*
|
||||
* There are two address spaces that this tool deals with - SPI flash address space and host
|
||||
* address space. This macros checks if the address is greater than 2GiB under the assumption
|
||||
|
Reference in New Issue
Block a user