Commit a6f91643 authored by Ariel D'Alessandro's avatar Ariel D'Alessandro Committed by Thomas Petazzoni
Browse files

axfs: add new filesystem type

The Advanced XIP File System is a Linux kernel filesystem driver that
enables files to be executed directly from flash or ROM memory rather
than being copied into RAM. It has the ability to store individual
*pages* in a file uncompressed/XIP or compressed/Demand Paged.

This commit only adds support for 'XIP all' mode, so all the files that
have the execute attribute set will be XIP'ed.

At the moment, the FS is not supported in Linux mainline (v4.3-rc5), so
the kernel has to be built with the axfs patches to be able to read it.
Patches can be found here: https://github.com/jaredeh/axfs



[Thomas: rewrap Config.in help text.]

Signed-off-by: default avatarAriel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 653cc68e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
menu "Filesystem images"

source "fs/axfs/Config.in"
source "fs/cloop/Config.in"
source "fs/cpio/Config.in"
source "fs/cramfs/Config.in"

fs/axfs/Config.in

0 → 100644
+17 −0
Original line number Diff line number Diff line
config BR2_TARGET_ROOTFS_AXFS
	bool "axfs root filesystem"
	help
	  The Advanced XIP File System is a Linux kernel filesystem
	  driver that enables files to be executed directly from flash
	  or ROM memory rather than being copied into RAM. It has the
	  ability to store individual *pages* in a file
	  uncompressed/XIP or compressed/Demand Paged.

	  So far, the only supported mode is 'XIP all', so all the
	  files that have the execute attribute set will be XIP'ed.

	  At the moment, the FS is not supported in Linux mainline
	  (v4.3-rc5), so the kernel has to be built with the axfs
	  patches to be able to read it. Patches can be found at:

	    https://github.com/jaredeh/axfs

fs/axfs/axfs.mk

0 → 100644
+13 −0
Original line number Diff line number Diff line
################################################################################
#
# Build the axfs root filesystem image
#
################################################################################

ROOTFS_AXFS_DEPENDENCIES = host-axfsutils

define ROOTFS_AXFS_CMD
	$(HOST_DIR)/usr/bin/mkfs.axfs -s -a $(TARGET_DIR) $@
endef

$(eval $(call ROOTFS_TARGET,axfs))