libpayload: Switch to commonlib ipchksum() algorithm
This patch moves libpayload over to the commonlib implementation for calculating the IP checksum. Change-Id: Ie8d323ce9f8d946758619761b4b22d54bce222b6 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80253 Reviewed-by: Jakub Czapiga <czapiga@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
##
|
||||
|
||||
libc-$(CONFIG_LP_LIBC) += malloc.c printf.c console.c string.c
|
||||
libc-$(CONFIG_LP_LIBC) += memory.c ctype.c ipchecksum.c lib.c libgcc.c
|
||||
libc-$(CONFIG_LP_LIBC) += memory.c ctype.c lib.c libgcc.c
|
||||
libc-$(CONFIG_LP_LIBC) += rand.c time.c exec.c
|
||||
libc-$(CONFIG_LP_LIBC) += readline.c getopt_long.c sysinfo.c
|
||||
libc-$(CONFIG_LP_LIBC) += args.c
|
||||
@@ -47,4 +47,5 @@ endif
|
||||
ifeq ($(CONFIG_LP_LIBC),y)
|
||||
libc-srcs += $(coreboottop)/src/commonlib/bsd/elog.c
|
||||
libc-srcs += $(coreboottop)/src/commonlib/bsd/gcd.c
|
||||
libc-srcs += $(coreboottop)/src/commonlib/bsd/ipchksum.c
|
||||
endif
|
||||
|
Reference in New Issue
Block a user