[Buildroot] [PATCH 1/6] intel-gmmlib: new package.

Baruch Siach baruch at tkos.co.il
Tue Jan 22 12:57:51 UTC 2019


Hi Louis-Paul,

Please avoid top-posting.

On Mon, Jan 21 2019, lpdev wrote:
> The default install target is installing a bunch of header files on
> the target, while unecessary. Maybe Buildroot scripts are cleaning
> them before creating the image?

Correct. See the target-finalize target definition in the top level
Makefile.

> Concerning the /lib folder, it is an error indeed. It must be in
> /usr/lib. Any other suggestions?

Just leave the libraries where upstream install target put them.

> This is my first contribution to the Buildroot project ;)

Thanks for you contribution. This is not bad for first time.

Good luck,
baruch

>> Thank you for your feedback!
>
> De : Baruch Siach <baruch at tkos.co.il>
> À : Louis-Paul Cordier <lpdev at cordier.org>
> Sujet : Re: [Buildroot] [PATCH 1/6] intel-gmmlib: new package.
> Date : 19/01/2019 19:29:31 Europe/Paris
> Copie à : buildroot at buildroot.org;
> Bernd Kuhls <bernd.kuhls at t-online.de>;
> Mahyar Koshkouei <mahyar.koshkouei at gmail.com>
>
> Hi Louis-Paul,
>
> On Fri, Jan 18 2019, Louis-Paul Cordier wrote:
>> Signed-off-by: Louis-Paul Cordier <lpdev at cordier.org>
>> ---
>> package/Config.in | 1 +
>> package/intel-gmmlib/Config.in | 8 ++++++++
>> package/intel-gmmlib/intel-gmmlib.hash | 2 ++
>> package/intel-gmmlib/intel-gmmlib.mk | 21 +++++++++++++++++++++
>> 4 files changed, 32 insertions(+)
>> create mode 100644 package/intel-gmmlib/Config.in
>> create mode 100644 package/intel-gmmlib/intel-gmmlib.hash
>> create mode 100644 package/intel-gmmlib/intel-gmmlib.mk
>>
>> diff --git a/package/Config.in b/package/Config.in
>> index 5036421a73..9082ed9956 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -1265,6 +1265,7 @@ menu "Graphics"
>> source "package/harfbuzz/Config.in"
>> source "package/ijs/Config.in"
>> source "package/imlib2/Config.in"
>> + source "package/intel-gmmlib/Config.in"
>> source "package/irrlicht/Config.in"
>> source "package/jasper/Config.in"
>> source "package/jpeg/Config.in"
>> diff --git a/package/intel-gmmlib/Config.in b/package/intel-gmmlib/Config.in
>> new file mode 100644
>> index 0000000000..8d9fab7ce3
>> --- /dev/null
>> +++ b/package/intel-gmmlib/Config.in
>> @@ -0,0 +1,8 @@
>> +config BR2_PACKAGE_INTEL_GMMLIB
>> + bool "intel-gmmlib"
>> + depends on BR2_x86_64
>> + help
>> + The Intel(R) Graphics Memory Management Library provides
>> + device specific and buffer management for the Intel(R)
>> + Graphics Compute Runtime for OpenCL(TM) and the Intel(R)
>> + Media Driver for VAAPI.
>> diff --git a/package/intel-gmmlib/intel-gmmlib.hash b/package/intel-gmmlib/intel-gmmlib.hash
>> new file mode 100644
>> index 0000000000..7e3b3dfd3f
>> --- /dev/null
>> +++ b/package/intel-gmmlib/intel-gmmlib.hash
>> @@ -0,0 +1,2 @@
>> +# Locally computed
>> +sha256 e3114d7ddd429f1b9aa43a1b1d0086d881fbf4d90e4a90ab8577c369d2e3a5e1 intel-gmmlib-18.3.0.tar.gz
>> diff --git a/package/intel-gmmlib/intel-gmmlib.mk b/package/intel-gmmlib/intel-gmmlib.mk
>> new file mode 100644
>> index 0000000000..206ea6db86
>> --- /dev/null
>> +++ b/package/intel-gmmlib/intel-gmmlib.mk
>> @@ -0,0 +1,21 @@
>> +################################################################################
>> +#
>> +# intel-gmmlib
>> +#
>> +################################################################################
>> +
>> +INTEL_GMMLIB_VERSION = 18.3.0
>> +INTEL_GMMLIB_SITE = https://github.com/intel/gmmlib/archive
>> +INTEL_GMMLIB_LICENSE = MIT
>> +INTEL_GMMLIB_LICENSE_FILES = COPYING
>> +
>> +INTEL_GMMLIB_INSTALL_STAGING = YES
>> +INTEL_GMMLIB_SUPPORTS_IN_SOURCE_BUILD = NO
>> +
>> +INTEL_GMMLIB_CONF_OPTS += -DRUN_TEST_SUITE=OFF
>> +
>> +define INTEL_GMMLIB_INSTALL_TARGET_CMDS
>> + cp -a $(STAGING_DIR)/usr/lib/libigdgmm* $(TARGET_DIR)/lib
>
> This is unusual. Can't you use the default install make target like the
> staging install? Why do you install in /lib on target when upstream
> installs in /usr/lib on staging?
>
> If this is all intended please explain why in a comment.
>
> baruch
>
>> +endef
>> +
>> +$(eval $(cmake-package))


--
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -



More information about the buildroot mailing list