update code

This commit is contained in:
zhuchunyi 2019-11-06 19:56:47 +08:00
commit 5b7beef6c8
3 changed files with 63 additions and 0 deletions

12
BGNoneRoot.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up xf86-video-fbdev-0.4.3/src/fbdev.c.dma xf86-video-fbdev-0.4.3/src/fbdev.c
--- xf86-video-fbdev-0.4.3/src/fbdev.c.dma 2012-07-02 12:46:46.000000000 +0100
+++ xf86-video-fbdev-0.4.3/src/fbdev.c 2012-07-02 13:02:40.545956779 +0100
@@ -673,6 +673,8 @@ FBDevScreenInit(SCREEN_INIT_ARGS_DECL)
pScrn->offset.red,pScrn->offset.green,pScrn->offset.blue);
#endif
+ pScreen->canDoBGNoneRoot = 1;
+
if (NULL == (fPtr->fbmem = fbdevHWMapVidmem(pScrn))) {
xf86DrvMsg(pScrn->scrnIndex,X_ERROR,"mapping of video memory"
" failed\n");

Binary file not shown.

51
xorg-x11-drv-fbdev.spec Normal file
View File

@ -0,0 +1,51 @@
%global moduledir %(pkg-config xorg-server --variable=moduledir )
%global driverdir %{moduledir}/drivers
%undefine _hardened_build
Name: xorg-x11-drv-fbdev
Version: 0.5.0
Release: 3
Summary: Xorg X11 fbdev video driver
License: MIT
URL: https://www.x.org
Source0: https://www.x.org/pub/individual/driver/xf86-video-fbdev-%{version}.tar.bz2
Patch2: BGNoneRoot.patch
BuildRequires: xorg-x11-server-devel autoconf automake libtool
Requires: Xorg %(xserver-sdk-abi-requires ansic)
Requires: Xorg %(xserver-sdk-abi-requires videodrv)
%description
X.Org X11 fbdev video driver.
%package_help
%prep
%autosetup -n xf86-video-fbdev-%{version} -p1
%build
autoreconf -vif
%configure
make
%install
%make_install
%delete_la
%files
%defattr(-,root,root)
%doc COPYING ChangeLog
%{driverdir}/fbdev_drv.so
%files help
%defattr(-,root,root)
%doc README
%{_mandir}/man4/fbdev.4*
%changelog
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.5.0-3
- Package init