board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / freescale-imx / gpu-amd-bin-mx51 / gpu-amd-bin-mx51.mk
blob44a6b4c7d251cb1aa4325d7677af922eb943e838
1 ################################################################################
3 # gpu-amd-bin-mx51
5 ################################################################################
7 GPU_AMD_BIN_MX51_SITE = $(FREESCALE_IMX_SITE)
8 GPU_AMD_BIN_MX51_BASE_VERSION = 11.09.01
9 ifeq ($(BR2_PACKAGE_GPU_AMD_BIN_MX51_OUTPUT_FB),y)
10 GPU_AMD_BIN_MX51_VERSION = $(GPU_AMD_BIN_MX51_BASE_VERSION)-fb
11 GPU_AMD_BIN_MX51_SOURCE = amd-gpu-bin-mx51-$(GPU_AMD_BIN_MX51_BASE_VERSION).bin
12 else
13 GPU_AMD_BIN_MX51_VERSION = $(GPU_AMD_BIN_MX51_BASE_VERSION)-x11
14 GPU_AMD_BIN_MX51_SOURCE = amd-gpu-x11-bin-mx51-$(GPU_AMD_BIN_MX51_BASE_VERSION).bin
15 GPU_AMD_BIN_MX51_DEPENDENCIES = libxcb xlib_libX11 xlib_libXext \
16 xlib_libXrender xlib_libXau xlib_libXdmcp
17 endif
18 GPU_AMD_BIN_MX51_PROVIDES = libegl libgles libopenvg
19 GPU_AMD_BIN_MX51_INSTALL_STAGING = YES
21 GPU_AMD_BIN_MX51_LICENSE = Freescale Semiconductor Software License Agreement
22 GPU_AMD_BIN_MX51_LICENSE_FILES = EULA
23 GPU_AMD_BIN_MX51_REDISTRIBUTE = NO
25 define GPU_AMD_BIN_MX51_EXTRACT_CMDS
26 $(call FREESCALE_IMX_EXTRACT_HELPER,$(DL_DIR)/$(GPU_AMD_BIN_MX51_SOURCE))
27 endef
29 # Upstream headers need to be compiled with -D_LINUX. It is more convenient
30 # to rely on __linux__ which is defined in compiler itself
31 define GPU_AMD_BIN_MX51_FIXUP_HEADERS
32 $(SED) 's/_LINUX/__linux__/g' $(@D)/usr/include/*/*.h
33 endef
34 GPU_AMD_BIN_MX51_POST_PATCH_HOOKS += GPU_AMD_BIN_MX51_FIXUP_HEADERS
36 # eglplatform_1.4.h contains X11 compatible headers
37 ifeq ($(BR2_PACKAGE_GPU_AMD_BIN_MX51_OUTPUT_X11),y)
38 define GPU_AMD_BIN_MX51_FIXUP_EGL_HEADERS
39 mv $(STAGING_DIR)/usr/include/EGL/eglplatform_1.4.h $(STAGING_DIR)/usr/include/EGL/eglplatform.h
40 endef
41 endif
43 define GPU_AMD_BIN_MX51_INSTALL_STAGING_CMDS
44 $(INSTALL) -d $(STAGING_DIR)/usr/lib/pkgconfig
45 $(INSTALL) -m 644 package/freescale-imx/gpu-amd-bin-mx51/*.pc $(STAGING_DIR)/usr/lib/pkgconfig/
46 $(INSTALL) -m 755 $(@D)/usr/lib/lib* $(STAGING_DIR)/usr/lib/
47 cp -r $(@D)/usr/include/* $(STAGING_DIR)/usr/include
48 $(GPU_AMD_BIN_MX51_FIXUP_EGL_HEADERS)
49 endef
51 ifeq ($(BR2_PACKAGE_GPU_AMD_BIN_MX51_EXAMPLES),y)
52 define GPU_AMD_BIN_MX51_INSTALL_EXAMPLES
53 $(INSTALL) -d $(TARGET_DIR)/usr/share/examples/gpu_amd_samples
54 $(INSTALL) -m 755 $(@D)/usr/bin/* $(TARGET_DIR)/usr/share/examples/gpu_amd_samples
55 endef
56 endif
58 define GPU_AMD_BIN_MX51_INSTALL_TARGET_CMDS
59 $(INSTALL) -m 755 $(@D)/usr/lib/lib*so* $(TARGET_DIR)/usr/lib/
60 $(GPU_AMD_BIN_MX51_INSTALL_EXAMPLES)
61 endef
63 define GPU_AMD_BIN_MX51_DEVICES
64 /dev/gsl_kmod c 640 0 0 249 0 1 4
65 endef
67 $(eval $(generic-package))