Gen8Resources: GFX_Linux_KM_Archos_Gen8.patch

File GFX_Linux_KM_Archos_Gen8.patch, 3.0 KB (added by Niels Slot <nielsslot@…>, 12 months ago)

Patch of my changes to the kernel module (and build scripts)

  • Kbuild

    diff --git a/Kbuild b/Kbuild
    index a34841f..87940ab 100755
    a b  
    3838services4/srvkm/bridged/bridged_pvr_bridge.c \ 
    3939services4/srvkm/bridged/bridged_support.c \ 
    4040services4/srvkm/bridged/sgx/bridged_sgx_bridge.c \ 
    41 services4/system/$(TI_PLATFORM)/sysutils.c \ 
    42 services4/system/$(TI_PLATFORM)/sysconfig.c \ 
     41services4/system/omap3630/sysutils.c \ 
     42services4/system/omap3630/sysconfig.c \ 
    4343 
    4444EXTRA_CFLAGS += -I$(src)/include4 
    4545EXTRA_CFLAGS += -I$(src)/services4/include 
     
    4949EXTRA_CFLAGS += -I$(src)/services4/srvkm/devices/sgx 
    5050EXTRA_CFLAGS += -I$(src)/services4/srvkm/env/linux 
    5151EXTRA_CFLAGS += -I$(src)/services4/system/include 
    52 EXTRA_CFLAGS += -I$(src)/services4/system/$(TI_PLATFORM) 
     52EXTRA_CFLAGS += -I$(src)/services4/system/omap3630 
    5353EXTRA_CFLAGS += -I$(src)/services4/srvkm/bridged/sgx 
    5454 
    5555EXTRA_CFLAGS += $(ALL_CFLAGS) 
  • Makefile

    diff --git a/Makefile b/Makefile
    index 7fe1828..ceaf036 100755
    a b  
    1 export KERNELDIR = /opt/oe/stuff/build/tmp/work/beagleboard-angstrom-linux-gnueabi/linux-omap-2.6.29-r44/git/ 
     1export KERNELDIR = ENTER YOUR KERNEL DIR HERE! 
    22 
    33export KERNEL_PATH=$(KERNELDIR) 
    44export KERNEL_SRC=$(KERNELDIR) 
     
    4444endif 
    4545endif 
    4646 
     47TI_PLATFORM = omap3630 
     48CORE = -DSGX530 -DSUPPORT_SGX530 -DSGX_CORE_REV=125 
     49 
    4750SUPPORT_SGX = 1 
    4851SUPPORT_HW_RECOVERY = 1 
    4952SUPPORT_SGX_HWPERF = 1 
  • services4/3rdparty/bufferclass_ti/bc_cat.c

    diff --git a/services4/3rdparty/bufferclass_ti/bc_cat.c b/services4/3rdparty/bufferclass_ti/bc_cat.c
    index 79e7b85..ee7280d 100755
    a b  
    600600    /* texture buffer width should be multiple of 8 for OMAP3 ES3.x, 
    601601     * or 32 for ES2.x */ 
    602602 
    603 #ifdef PLAT_TI8168 
     603//#ifdef PLAT_TI8168 
    604604     width_align = 8; 
    605 #else 
    606      width_align = cpu_is_omap3530() && ( omap_rev() < OMAP3430_REV_ES3_0 ) ? 32 : 8;  
    607 #endif    
     605//#else 
     606//     width_align = cpu_is_omap3530() && ( omap_rev() < OMAP3430_REV_ES3_0 ) ? 32 : 8; 
     607//#endif 
    608608  
    609609    major = register_chrdev(0, DEVNAME, &bc_cat_fops); 
    610610 
  • services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c

    diff --git a/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c b/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
    index fa52836..a95a453 100755
    a b  
    4646 
    4747#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)) 
    4848#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31)) 
    49 #include <plat/display.h> 
     49#include <mach/display.h> 
    5050#else  
    5151#include <mach/display.h> 
    5252#endif  
     
    6161extern void omap_dispc_free_irq(unsigned long, void (*)(void *), void *); 
    6262extern void omap_dispc_set_plane_base(int plane, IMG_UINT32 phys_addr); 
    6363#else 
    64 #include <plat/display.h> 
     64#include <mach/display.h> 
    6565#include <linux/console.h> 
    6666#include <linux/fb.h> 
    6767static omap_dispc_isr_t *pOMAPLFBVSyncISRHandle = NULL;