mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
parent
db20aad591
commit
90753f3e50
@ -1 +1 @@
|
||||
4ca5681b074e2b5f64454b4065faab28b33f2cc5
|
||||
819dcca8a2acf0b63c6b316e0b799445aa922ffe
|
||||
|
@ -1,13 +1,30 @@
|
||||
LICENSE := BSD
|
||||
VERSION := 0.13
|
||||
VERSION := 0.13a
|
||||
DOWNLOADS := fatfs.archive
|
||||
|
||||
URL(fatfs) := http://www.elm-chan.org/fsw/ff/arc/ff13.zip
|
||||
SHA(fatfs) := 8ce22f86e339b0fc59c8c69941fbaf86e5cf9364
|
||||
URL(fatfs) := http://www.elm-chan.org/fsw/ff/arc/ff13a.zip
|
||||
SHA(fatfs) := 0c74176ccf0c20b66e55b700c9ba826b43815b8b
|
||||
DIR(fatfs) := src/lib/fatfs
|
||||
|
||||
PATCHES := src/lib/fatfs/ffconf.patch src/lib/fatfs/integer.patch
|
||||
PATCHES := src/lib/fatfs/integer.patch
|
||||
|
||||
DIRS := include/fatfs
|
||||
DIR_CONTENT(include/fatfs) := \
|
||||
$(addprefix src/lib/fatfs/source/, ff.h ffconf.h diskio.h integer.h)
|
||||
$(addprefix src/lib/fatfs/source/, ff.h diskio.h integer.h ffconf.h)
|
||||
|
||||
default: edit_conf
|
||||
|
||||
edit_conf: src/lib/fatfs/source/ffconf.h
|
||||
@$(MSG_GENERATE)$(notdir $<)
|
||||
$(VERBOSE)sed \
|
||||
-e 's/define FF_USE_LABEL.*/define FF_USE_LABEL 1/' \
|
||||
-e 's/define FF_CODE_PAGE.*/define FF_CODE_PAGE 0/' \
|
||||
-e 's/define FF_USE_LFN.*/define FF_USE_LFN 2/' \
|
||||
-e 's/define FF_FS_RPATH.*/define FF_FS_RPATH 1/' \
|
||||
-e 's/define FF_VOLUMES.*/define FF_VOLUMES 10/' \
|
||||
-e 's/define FF_MAX_SS.*/define FF_MAX_SS 4096/' \
|
||||
-e 's/define FF_FS_EXFAT.*/define FF_FS_EXFAT 1/' \
|
||||
-e 's/define FF_FS_NORTC.*/define FF_FS_NORTC 1/' \
|
||||
-i $<
|
||||
|
||||
src/lib/fatfs/source/ffconf.h: $(DOWNLOADS)
|
||||
|
20
repos/libports/recipes/api/fatfs/content.mk
Normal file
20
repos/libports/recipes/api/fatfs/content.mk
Normal file
@ -0,0 +1,20 @@
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/fatfs)
|
||||
|
||||
MIRROR_FROM_REP_DIR := \
|
||||
lib/import/import-fatfs_block.mk \
|
||||
lib/mk/fatfs_block.mk
|
||||
|
||||
content: include src $(MIRROR_FROM_REP_DIR)
|
||||
|
||||
include:
|
||||
mkdir -p include/fatfs
|
||||
cp -r $(PORT_DIR)/$@/* $@
|
||||
cp $(REP_DIR)/include/fatfs/block.h include/fatfs
|
||||
|
||||
src:
|
||||
mkdir -p src/lib/fatfs
|
||||
cp -r $(PORT_DIR)/$@/* $@
|
||||
cp $(REP_DIR)/src/lib/fatfs/diskio_block.cc src/lib/fatfs/
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
1
repos/libports/recipes/api/fatfs/hash
Normal file
1
repos/libports/recipes/api/fatfs/hash
Normal file
@ -0,0 +1 @@
|
||||
2018-02-09 151c753cb1cbe40b65cd72069a938468d6d5211d
|
9
repos/libports/recipes/src/vfs_fatfs/content.mk
Normal file
9
repos/libports/recipes/src/vfs_fatfs/content.mk
Normal file
@ -0,0 +1,9 @@
|
||||
MIRROR_FROM_REP_DIR := lib/mk/vfs_fatfs.mk src/lib/vfs/fatfs
|
||||
|
||||
content: $(MIRROR_FROM_REP_DIR) LICENSE
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
LICENSE:
|
||||
cp $(GENODE_DIR)/LICENSE $@
|
1
repos/libports/recipes/src/vfs_fatfs/hash
Normal file
1
repos/libports/recipes/src/vfs_fatfs/hash
Normal file
@ -0,0 +1 @@
|
||||
2018-02-09 fc48f67489afc55e246f092cb3a572e1f8edf4da
|
5
repos/libports/recipes/src/vfs_fatfs/used_apis
Normal file
5
repos/libports/recipes/src/vfs_fatfs/used_apis
Normal file
@ -0,0 +1,5 @@
|
||||
base
|
||||
block_session
|
||||
fatfs
|
||||
os
|
||||
vfs
|
@ -20,7 +20,6 @@
|
||||
#include <vfs/file_system.h>
|
||||
#include <vfs/vfs_handle.h>
|
||||
#include <os/path.h>
|
||||
#include <timer_session/connection.h>
|
||||
|
||||
/* Genode block backend */
|
||||
#include <fatfs/block.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user