Компилирую так:
CROSS_COMPILE=arm-none-eabi- ARCH=arm make
При компиляции возникла ошибка:
In file included from drivers/staging/lustre/lustre/lov/../include/../../include/linux/libcfs/libcfs.h:163:0,
from drivers/staging/lustre/lustre/lov/../include/lustre_net.h:58,
from drivers/staging/lustre/lustre/lov/lov_pack.c:45:
drivers/staging/lustre/lustre/lov/lov_pack.c: In function 'lov_getstripe':
drivers/staging/lustre/lustre/lov/../include/../../include/linux/libcfs/libcfs_private.h:411:54: error: duplicate case value
#define CLASSERT(cond) do {switch (42) {case (cond): case 0: break; } } while (0)
^
drivers/staging/lustre/lustre/lov/lov_pack.c:463:2: note: in expansion of macro 'CLASSERT'
CLASSERT(sizeof(lum) == sizeof(struct lov_mds_md_v3));
^
drivers/staging/lustre/lustre/lov/../include/../../include/linux/libcfs/libcfs_private.h:411:41: error: previously used here
#define CLASSERT(cond) do {switch (42) {case (cond): case 0: break; } } while (0)
^
drivers/staging/lustre/lustre/lov/lov_pack.c:463:2: note: in expansion of macro 'CLASSERT'
CLASSERT(sizeof(lum) == sizeof(struct lov_mds_md_v3));
^
scripts/Makefile.build:258: recipe for target 'drivers/staging/lustre/lustre/lov/lov_pack.o' failed
make[5]: *** [drivers/staging/lustre/lustre/lov/lov_pack.o] Error 1
scripts/Makefile.build:403: recipe for target 'drivers/staging/lustre/lustre/lov' failed
make[4]: *** [drivers/staging/lustre/lustre/lov] Error 2
scripts/Makefile.build:403: recipe for target 'drivers/staging/lustre/lustre' failed
make[3]: *** [drivers/staging/lustre/lustre] Error 2
scripts/Makefile.build:403: recipe for target 'drivers/staging/lustre' failed
make[2]: *** [drivers/staging/lustre] Error 2
scripts/Makefile.build:403: recipe for target 'drivers/staging' failed
make[1]: *** [drivers/staging] Error 2
Makefile:947: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Правда, при компиляции ещё много варнингов вылазиет.
Как я понял, это баг ядра.
Забагованный участок я отключил
Компилятор для arm - из sid. sid стоит у меня в chroot, и там происходит сборка.