diff options
author | Bin Meng <bin.meng@windriver.com> | 2021-01-23 18:39:57 +0800 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-01-24 20:10:54 +0100 |
commit | 0b73ce30604c4fc9a004338cac6a28bc3f3e2fab (patch) | |
tree | c239704a15fc1606e553f1169094bf0d178cb744 /util/meson.build | |
parent | e9d28020d267fc76aa261537c0114d4402d678da (diff) |
util: Add CRC16 (CCITT) calculation routines
Import CRC16 calculation routines from Linux kernel v5.10:
include/linux/crc-ccitt.h
lib/crc-ccitt.c
to QEMU:
include/qemu/crc-ccitt.h
util/crc-ccitt.c
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210123104016.17485-7-bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[PMD: Restrict compilation to system emulation]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'util/meson.build')
-rw-r--r-- | util/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/meson.build b/util/meson.build index 540a605b78..3eccdbe596 100644 --- a/util/meson.build +++ b/util/meson.build @@ -49,6 +49,7 @@ if have_user endif if have_system + util_ss.add(files('crc-ccitt.c')) util_ss.add(when: 'CONFIG_GIO', if_true: [files('dbus.c'), gio]) util_ss.add(files('yank.c')) endif |