[Buildroot] [PATCH 1/2] librtas: new package

Sam Bobroff sam.bobroff at au1.ibm.com
Fri May 8 05:37:22 UTC 2015


On 08/05/15 14:52, Baruch Siach wrote:
> Hi Sam,
> 
> On Fri, May 08, 2015 at 02:27:48PM +1000, Sam Bobroff wrote:
>> diff --git a/package/librtas/librtas.mk b/package/librtas/librtas.mk
>> new file mode 100644
>> index 0000000..d13c876
>> --- /dev/null
>> +++ b/package/librtas/librtas.mk
>> @@ -0,0 +1,27 @@
>> +################################################################################
>> +#
>> +# librtas
>> +#
>> +################################################################################
>> +
>> +LIBRTAS_VERSION = 1.3.13
>> +LIBRTAS_SITE = http://downloads.sourceforge.net/project/librtas
>> +LIBRTAS_LICENSE = Common Public License Version 1.0
>> +LIBRTAS_LICENSE_FILES = COPYRIGHT
>> +LIBRTAS_INSTALL_STAGING = YES
>> +LIBRTAS_INSTALL_TARGET = YES
> 
> Not needed, this is the default.

OK.

> 
>> +
>> +define LIBRTAS_BUILD_CMDS
>> +	$(MAKE) -C $(@D) CC="$(TARGET_CC)" LD="$(TARGET_LD)"
>> +endef
>> +
>> +define LIBRTAS_INSTALL_STAGING_CMDS
>> +	$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
>> +endef
>> +
>> +define LIBRTAS_INSTALL_TARGET_CMDS
>> +	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
>> +endef
>> +
>> +
>> +$(eval $(generic-package))
>> diff --git a/package/librtas/missing-librtas.so.1.patch b/package/librtas/missing-librtas.so.1.patch
>> new file mode 100644
>> index 0000000..de21d66
>> --- /dev/null
>> +++ b/package/librtas/missing-librtas.so.1.patch
>> @@ -0,0 +1,11 @@
> 
> Please add your Sign-off here.

OK. Will do.

> 
>> +diff -purN librtas-1.3.12.orig/librtas_src/Makefile librtas-1.3.12/librtas_src/Makefile
>> +--- librtas-1.3.12.orig/librtas_src/Makefile	2015-04-09 10:45:19.772381633 +1000
>> ++++ librtas-1.3.12/librtas_src/Makefile	2015-04-09 10:45:57.968604762 +1000
>> +@@ -33,6 +33,7 @@ install:
>> + 	@$(call install_lib,$(LIBRTAS),$(DESTDIR))
>> + 	@$(call install_inc,$(HEADERS),$(DESTDIR))
>> + 	@ln -sf $(LIBRTAS) $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBRTAS))/$(LIBRTAS_SONAME)
>> ++	@ln -sf $(LIBRTAS) $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBRTAS))/$(LIBRTAS_SONAME).1
>> + 
>> + uninstall:
>> + 	@$(call uninstall_lib,$(LIBRTAS),$(DESTDIR))
> 

Thanks for the comments.

Sam.



More information about the buildroot mailing list