Hi, I need to compile my own kernels to carry out some tests on Replicant devices to document the issues with USB WiFi on them.
So while at it, I did a HOWTO since Tiberiu-Cezar was interested in the same thing. I had to do some minor patching to make crespo kernel compile. The patches are attached and will be sent to gitlab once I get an account. Denis.
From cc6fd948a1beb3c2b2d8d381be3be346da8211be Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli <gnu...@no-log.org> Date: Thu, 4 Feb 2016 13:46:40 +0100 Subject: [PATCH 1/3] gpu: pvr: Fix compilation with gcc 4.8.2 Without that fix, with gcc 4.8.2 we have: drivers/gpu/pvr/sgx/mmu.c: In function 'MMU_Alloc': drivers/gpu/pvr/sgx/mmu.c:1176:11: error: 'sDevPAddr.uiAddr' may be used uninitialized in this function [-Werror=maybe-uninitialized] | SGX_MMU_PDE_VALID; ^ drivers/gpu/pvr/sgx/mmu.c:1116:20: note: 'sDevPAddr.uiAddr' was declared here IMG_DEV_PHYADDR sDevPAddr; ^ cc1: all warnings being treated as errors Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@no-log.org> --- drivers/gpu/pvr/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/pvr/Makefile b/drivers/gpu/pvr/Makefile index d428d50..b163b6a 100644 --- a/drivers/gpu/pvr/Makefile +++ b/drivers/gpu/pvr/Makefile @@ -10,7 +10,6 @@ ccflags-y := \ -Wstrict-prototypes\ -Wno-unused-parameter\ -Wno-sign-compare\ - -Werror\ -fno-strict-aliasing\ -Wno-pointer-arith\ -Os -- 1.9.1
From fc85361ddf1261b2d39ca0fe5a57cf7e791b05ae Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli <gnu...@no-log.org> Date: Thu, 4 Feb 2016 14:26:08 +0100 Subject: [PATCH 2/3] usb: host: s3c-otg: Fix compilation with gcc 4.8.2 Without that fix we have errors like this one: CC drivers/usb/host/s3c-otg/s3c-otg-hcdi-hcd.o In file included from drivers/usb/host/s3c-otg/s3c-otg-transfer-transfer.h:48:0, from drivers/usb/host/s3c-otg/s3c-otg-hcdi-hcd.h:51, from drivers/usb/host/s3c-otg/s3c-otg-hcdi-hcd.c:31: drivers/usb/host/s3c-otg/s3c-otg-hcdi-hcd.c: In function 's5pc110_otghcd_irq': drivers/usb/host/s3c-otg/s3c-otg-isr.h:48:17: error: inlining failed in call to always_inline 'otg_handle_interrupt': function body not available __inline__ void otg_handle_interrupt(struct usb_hcd *hcd); ^ Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@no-log.org> --- drivers/usb/host/s3c-otg/s3c-otg-isr.c | 2 +- drivers/usb/host/s3c-otg/s3c-otg-isr.h | 2 +- drivers/usb/host/s3c-otg/s3c-otg-roothub.c | 4 ++-- drivers/usb/host/s3c-otg/s3c-otg-roothub.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/s3c-otg/s3c-otg-isr.c b/drivers/usb/host/s3c-otg/s3c-otg-isr.c index 6bb790d..f497dcf 100644 --- a/drivers/usb/host/s3c-otg/s3c-otg-isr.c +++ b/drivers/usb/host/s3c-otg/s3c-otg-isr.c @@ -42,7 +42,7 @@ * */ -__inline__ void otg_handle_interrupt(struct usb_hcd *hcd) +void otg_handle_interrupt(struct usb_hcd *hcd) { gintsts_t clearIntr = {.d32 = 0}; gintsts_t gintsts = {.d32 = 0}; diff --git a/drivers/usb/host/s3c-otg/s3c-otg-isr.h b/drivers/usb/host/s3c-otg/s3c-otg-isr.h index cad4cf5..438922a 100644 --- a/drivers/usb/host/s3c-otg/s3c-otg-isr.h +++ b/drivers/usb/host/s3c-otg/s3c-otg-isr.h @@ -45,7 +45,7 @@ extern "C" #include "s3c-otg-roothub.h" #include "s3c-otg-oci.h" -__inline__ void otg_handle_interrupt(struct usb_hcd *hcd); +void otg_handle_interrupt(struct usb_hcd *hcd); void process_port_intr(struct usb_hcd *hcd); diff --git a/drivers/usb/host/s3c-otg/s3c-otg-roothub.c b/drivers/usb/host/s3c-otg/s3c-otg-roothub.c index 7d9d289..b4b9d82 100644 --- a/drivers/usb/host/s3c-otg/s3c-otg-roothub.c +++ b/drivers/usb/host/s3c-otg/s3c-otg-roothub.c @@ -92,7 +92,7 @@ static void setPortPower(bool on) * @remark * */ -__inline__ int get_otg_port_status( +int get_otg_port_status( struct usb_hcd *hcd, const u8 port, char *status) { @@ -238,7 +238,7 @@ int reset_and_enable_port(struct usb_hcd *hcd, const u8 port) * @remark * */ -__inline__ int root_hub_feature( +int root_hub_feature( struct usb_hcd *hcd, const u8 port, const u16 type_req, diff --git a/drivers/usb/host/s3c-otg/s3c-otg-roothub.h b/drivers/usb/host/s3c-otg/s3c-otg-roothub.h index 03883d1..e16e46e 100644 --- a/drivers/usb/host/s3c-otg/s3c-otg-roothub.h +++ b/drivers/usb/host/s3c-otg/s3c-otg-roothub.h @@ -42,14 +42,14 @@ extern "C" #include "s3c-otg-hcdi-memory.h" #include "s3c-otg-oci.h" -__inline__ int root_hub_feature( +int root_hub_feature( struct usb_hcd *hcd, const u8 port, const u16 type_req, const u16 feature, void *buf); -__inline__ int get_otg_port_status( +int get_otg_port_status( struct usb_hcd *hcd, const u8 port, char *status); int reset_and_enable_port(struct usb_hcd *hcd, const u8 port); -- 1.9.1
From f04ca0b45fb3fa0e042b53db8bea27238664fb15 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli <gnu...@no-log.org> Date: Thu, 4 Feb 2016 14:31:11 +0100 Subject: [PATCH 3/3] fb: Fix compilation with gcc 4.8.2 This fix the following error: CC drivers/video/fbmem.o drivers/video/fbmem.c:39:27: fatal error: samsung/s3cfb.h: No such file or directory #include <samsung/s3cfb.h> ^ compilation terminated. Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@no-log.org> --- drivers/video/fbmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 7464a0a..ebfa04b 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -36,7 +36,7 @@ #include <asm/fb.h> #ifdef CONFIG_FB_S3C -#include <samsung/s3cfb.h> +#include "samsung/s3cfb.h" #endif /* -- 1.9.1
pgp5QJIsRYc2o.pgp
Description: OpenPGP digital signature
_______________________________________________ Replicant mailing list Replicant@lists.osuosl.org http://lists.osuosl.org/mailman/listinfo/replicant