summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-08 00:33:03 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-08 00:33:03 +0000
commit33fabb1d3a03ebc33cc128e3a37bcf36d8d7d330 (patch)
treef64e4618a7718b581d41b6ce0e3a80d2c91563ab
parent09df7b973a2b7fa78892df436d933c3ddc476eee (diff)
downloadbuildroot-novena-33fabb1d3a03ebc33cc128e3a37bcf36d8d7d330.tar.gz
buildroot-novena-33fabb1d3a03ebc33cc128e3a37bcf36d8d7d330.zip
disable some drivers, touchup build system, and install into STAGING_DIR prefix
-rw-r--r--package/directfb/directfb-i830-detect.patch17
-rw-r--r--package/directfb/directfb.mk12
2 files changed, 24 insertions, 5 deletions
diff --git a/package/directfb/directfb-i830-detect.patch b/package/directfb/directfb-i830-detect.patch
new file mode 100644
index 000000000..fbe4816d2
--- /dev/null
+++ b/package/directfb/directfb-i830-detect.patch
@@ -0,0 +1,17 @@
+Detect the presence of the I830 fb driver rather than
+just assuming it always exists.
+
+--- DirectFB-0.9.22/configure
++++ DirectFB-0.9.22/configure
+@@ -23622,9 +23622,9 @@
+ /* end confdefs.h. */
+
+ #include <linux/fb.h>
+-//#ifdef FB_ACCEL_I830
++#ifdef FB_ACCEL_I830
+ yes
+-//#endif
++#endif
+
+ _ACEOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk
index aaa93136b..803158587 100644
--- a/package/directfb/directfb.mk
+++ b/package/directfb/directfb.mk
@@ -16,17 +16,21 @@ directfb-source: $(DL_DIR)/$(DIRECTFB_SOURCE)
$(DIRECTFB_DIR)/.unpacked: $(DL_DIR)/$(DIRECTFB_SOURCE)
$(DIRECTFB_CAT) $(DL_DIR)/$(DIRECTFB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(DIRECTFB_DIR) package/directfb/ directfb\*.patch
touch $(DIRECTFB_DIR)/.unpacked
$(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.unpacked
(cd $(DIRECTFB_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
+ LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
+ ac_cv_header_linux_wm97xx_h=no \
+ ac_cv_header_linux_sisfb_h=no \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
- --prefix=/usr \
+ --prefix=$(STAGING_DIR)/usr \
--with-gfxdrivers=cle266,unichrome \
--enable-jpeg \
--enable-png \
@@ -40,13 +44,11 @@ $(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.unpacked
touch $(DIRECTFB_DIR)/.configured
$(DIRECTFB_DIR)/.compiled: $(DIRECTFB_DIR)/.configured
- $(MAKE) -C $(DIRECTFB_DIR) \
- LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
- INCLS="-I. -I$(STAGING_DIR)/include"
+ $(MAKE) -C $(DIRECTFB_DIR)
touch $(DIRECTFB_DIR)/.compiled
$(STAGING_DIR)/usr/lib/libdirectfb.so: $(DIRECTFB_DIR)/.compiled
- $(MAKE) -C $(DIRECTFB_DIR) DESTDIR=$(STAGING_DIR) install
+ $(MAKE) -C $(DIRECTFB_DIR) install
touch -c $(STAGING_DIR)/lib/libdirectfb.so
$(TARGET_DIR)/usr/lib/libdirectfb.so: $(STAGING_DIR)/usr/lib/libdirectfb.so