Revision as of 10:32, 30 April 2014 by Craig Peacock (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

systemd

Attr

The attr package contains commands for manipulating the extended attributes on filesystem objects.

It is a prerequisite for libcap. Download, build and install the library:

http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz
tar -xzf attr-2.4.47.src.tar.gz
cd attr-2.4.47/
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi
make
make install-lib install-dev

Install-lib installs the library, while install-dev (development) installs the C header files.

Finally, create a symbolic link for libattr:

ln -s /usr/arm-linux-gnueabi/lib/libattr.so.1.1.0 /usr/arm-linux-gnueabi/lib/libattr.so

libcap

Libcap is a library for getting and setting POSIX.1e capabilities.

https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.24.tar.xz
tar -xJf libcap-2.24.tar.xz
cd libcap-2.24/
make prefix=/usr/arm-linux-gnueabi BUILD_CC=gcc CC=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar RANLIB=arm-linux-gnueabi-ranlib

libkmod

Kmod contains programs for loading, inserting and removing kernel modules for Linux.

It is a prerequisite for systemd. Download, build and install the library:

https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-17.tar.gz
tar -xzf kmod-17.tar.gz 
cd kmod-17/
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi
make
make install

systemd

http://www.freedesktop.org/software/systemd/systemd-212.tar.xz
tar -xJf systemd-212.tar.xz
cd systemd-212/
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi PKG_CONFIG_PATH=/usr/arm-linux-gnueabi/lib/pkgconfig ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
make src/libudev
make install src/libudev