From 5c008832453686aac72f4c9e5f7ddf3fa5a7d512 Mon Sep 17 00:00:00 2001 From: tz Date: Fri, 29 Aug 2014 07:33:00 -0700 Subject: [PATCH] Add note about building for something other than a PC, e.g. a RasPi The Makefile is configured by settings on top, not by trying to completely determine the target from the kernel tree or other things, and some other options. For a normal USB adapter on a PC, just type "make", for anything else, it needs the options changed. The added section explains it. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8bad67e..4e677b6 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,16 @@ functions in favor of the new `proc_create()` function. ### Building +The Makefile is preconfigured to handle most x86/PC versions. If you are compiling for something other than an intel x86 architecture, you need to first select the platform, e.g. for the Raspberry Pi, you need to set the I386 to n and the ARM_RPI to y: +```sh +... +CONFIG_PLATFORM_I386_PC = n +... +CONFIG_PLATFORM_ARM_RPI = y +``` + +There are many other platforms supported and some other advanced options, e.g. PCI instead of USB, but most won't be needed. + The driver is built by running `make`, and can be tested by loading the built module using `insmod`: