coreboot-kgpe-d16/util/i915tool
Stefan Reinauer 564e90f571 Add a tool to work on i915 hardware in user mode
This is the beginning of a tool that transforms the i9x5 code to user
mode code. Consider this a very early stage although it does produce
two programs. Requires spatch 1.0 or greater.

To try it out, assuming you have an up-to-date spatch,
   sh transform
   make
   make broken

Please don't fall to the temptation to auto-magicize this process.
It's primitive for a reason. That said, suggestions welcome of course.

Change-Id: I0188e36637b198b06c17f6d3c714d990e88bd57d
Signed-off-by: Ronald G. Minnich <rminnich@chromium.org>
Reviewed-on: http://review.coreboot.org/1003
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2012-05-08 00:40:36 +02:00
..
spatches Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
Makefile Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
README Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
main.c Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
pci.c Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
plusplusplus Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
transform Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00
video.h Add a tool to work on i915 hardware in user mode 2012-05-08 00:40:36 +02:00

README

spatches are the semantic patches
tmp is just tmp
inputs are copied from $LINUX
per-file-changes contain input files that have specific transforms
final contains the final form of the file, with 'global' changes applied (e.g. kzalloc -> calloc)

transform copies files from $LINUX and then transforms them for use by stand-alone program/coreboot

The Makefile is simple; this runs 'fast enough' that a complicated Makefile is not worth it.

There's still some duct tape here but it's getting there.