asterinas / jinzhao-disk

Jinzhao Disk (JinDisk) is a log-structured secure block device for TEEs. This repo is JinDisk's Linux version.
Other
37 stars 10 forks source link

Unable to locate package zlibc when installing the kernel module #39

Open StanPlatinum opened 1 year ago

StanPlatinum commented 1 year ago

The readme in kernel-module indicates that the following dependencies should be installed for building the dm-jindisk kernel module.

sudo apt install dpkg-dev libncurses5-dev openssl libssl-dev build-essential pkg-config libc6-dev libc6-dev flex libelf-dev zlibc minizip libidn11-dev libidn11-dev bison dwarves

But, the zlibc cannot be located on Ubuntu 22.04.

Actually, we don't need zlibc to build the kernel module. I have tested it without the zlibc support many times. Can we remove it?

cqs21 commented 1 year ago

Sure, zlibc may only be necessary on some old kernel. You can check kernel documentation for the Minimal requirements to compile the Kernel. And as it says:

not all tools are necessary on all systems.