mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
platform_device.c improve docs
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
/*
|
||||||
|
Only works for ARM.
|
||||||
|
|
||||||
|
Expected outcome after insmod:
|
||||||
|
|
||||||
|
- QEMU reports MMIO with printfs
|
||||||
|
- IRQs are generated and handled by this module, which logs to dmesg
|
||||||
|
*/
|
||||||
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|||||||
1
run
1
run
@@ -37,6 +37,7 @@ cat ../buildroot_config_fragment >> "${outdir}/.config"
|
|||||||
# https://stackoverflow.com/questions/44341188/how-to-pass-extra-custom-configure-autotools-options-to-a-buildroot-package/44341225#44341225
|
# https://stackoverflow.com/questions/44341188/how-to-pass-extra-custom-configure-autotools-options-to-a-buildroot-package/44341225#44341225
|
||||||
env \
|
env \
|
||||||
-u LD_LIBRARY_PATH \
|
-u LD_LIBRARY_PATH \
|
||||||
|
time \
|
||||||
make \
|
make \
|
||||||
O="$outdir" \
|
O="$outdir" \
|
||||||
BR2_JLEVEL="$(($(nproc) - 2))" \
|
BR2_JLEVEL="$(($(nproc) - 2))" \
|
||||||
|
|||||||
Reference in New Issue
Block a user