Hi, This will help you.
>From 050e8712a60c7d982a7be8c076fb72452364dae4 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim <jaegeuk....@samsung.com> Date: Thu, 17 Oct 2013 15:15:54 +0900 Subject: [PATCH] README: add description how to cross-compile Cc: linux-fsde...@vger.kernel.org, linux-ker...@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net This patch adds description for the cross-compilation. Signed-off-by: Jaegeuk Kim <jaegeuk....@samsung.com> --- README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README b/README index cbb492e..bf374fb 100644 --- a/README +++ b/README @@ -25,6 +25,20 @@ How to compile # ./configure # make +How to cross-compile (e.g., for ARM) +------------------------------------ + + 1. Add the below line into mkfs/Makefile.am: + mkfs_f2fs_LDFLAGS = -all-static + + 2. Add the below line into fsck/Makefile.am: + fsck_f2fs_LDFLAGS = -all-static + + 3. then, do: + # LDFLAGS=--static ./configure \ + --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi + # make + How to run by default --------------------- -- 1.8.4.474.g128a96c -- Jaegeuk Kim Samsung ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel