[Buildroot] PATCH: DirectFB PAGE_SIZE handling

Ivan Kuten ivan.kuten at promwad.com
Mon Jun 25 22:36:23 UTC 2007


Hello,

DirectFB lib/direct/system.c uses PAGE_SIZE definition and fails to build:
system.c: In function 'direct_pagesize':
system.c:64: error: 'PAGE_SIZE' undeclared (first use in this function)
system.c:64: error: (Each undeclared identifier is reported only once
system.c:64: error: for each function it appears in.)

There is no PAGE_SIZE in <asm/page.h> at least on ARM, the following patch
forces DirectFB to detect PAGE_SIZE via sysconf( _SC_PAGESIZE ) libc call:

diff -urN buildroot.orig/package/directfb/directfb.mk
buildroot.new/package/directfb/directfb.mk
--- buildroot.orig/package/directfb/directfb.mk 2007-05-18 10:15:13.000000000 +0300
+++ buildroot.new/package/directfb/directfb.mk  2007-06-26 00:17:13.000000000 +0300
@@ -26,6 +26,7 @@
        LDFLAGS="$(TARGET_LDFLAGS)" \
        ac_cv_header_linux_wm97xx_h=no \
        ac_cv_header_linux_sisfb_h=no \
+       ac_cv_header_asm_page_h=no \
        ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \

Also patch is attached because my mailer breaks formatting.

Best regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DirectFB-patch_PAGE_SIZE.diff
Type: application/octet-stream
Size: 494 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20070626/f1993d5e/attachment-0003.obj>


More information about the buildroot mailing list