first is to get the .config right:

Assuming the present directory is the linux kernel directory:
/sdd1/linux-2.6-latest (my version is 4.4.0-rc5, linus tree):

Copy the raspberry PI config file as ".config".

Then:

*make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- TARGETS="size timers"
oldconfig*

And then:

*make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- TARGETS="size timers"
kselftest*
scripts/kconfig/conf  --silentoldconfig Kconfig
for TARGET in size timers; do \
        make -C $TARGET; \
    done;
make[2]: Entering directory
`/sdd1/linux-2.6-latest/tools/testing/selftests/size'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/sdd1/linux-2.6-latest/tools/testing/selftests/size'
make[2]: Entering directory
`/sdd1/linux-2.6-latest/tools/testing/selftests/timers'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/sdd1/linux-2.6-latest/tools/testing/selftests/timers'
for TARGET in size timers; do \
        make -C $TARGET run_tests; \
    done;
make[2]: Entering directory
`/sdd1/linux-2.6-latest/tools/testing/selftests/size'
Testing system size.
1..1
ok 1 get runtime memory use # size = 8755100
# System runtime memory report (units in Kilobytes):
#   Total:  15276392
#   Free:   270180
#   Buffer: 6251112
#   In use: 8755100
selftests: get_size [PASS]
make[2]: Leaving directory
`/sdd1/linux-2.6-latest/tools/testing/selftests/size'
make[2]: Entering directory
`/sdd1/linux-2.6-latest/tools/testing/selftests/timers'
Testing posix timers. False negative may happen on CPU execution
based timers if other threads run on the CPU...
Check itimer virtual... [OK]
Check itimer prof... [OK]
Check itimer real... [OK]
Check timer_create() per thread... [OK]
Check timer_create() per process... [OK]
selftests: posix_timers [PASS]
Nanosleep CLOCK_REALTIME                  [OK]


*<SNIP>**<SNIP>*


*<SNIP>*
As you can see....compilation continues from above.....


On Tue, Dec 22, 2015 at 7:51 PM, pradeep goswami <pradeepgoswam...@gmail.com
> wrote:

> I am trying to cross compile kselftest  (kernle/tools/testing/selftest/)
> for arm.
>
> Here is command I am using ;-
>
> *make ARCH=arm CROSS_COMPILE=arm-eabi-  -C kernel/tools/testing/selftests/*
>
>
> but I am not able to compile it any help will be appricated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "linuxkernelnewbies" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linuxkernelnewbies+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Peter Teoh

-- 
You received this message because you are subscribed to the Google Groups 
"linuxkernelnewbies" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linuxkernelnewbies+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to