Skip to contentSkip to conversation

linux-firmware: Use the included Makefile for install

PATCH In review Otavio Salvador 4 participants 12 messages Mar 23, 2013 – Mar 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 linux-firmware: Use the included Makefile for install

This uses the install procedure included in the Makefile which avoids code dupplication.

---
 .../linux-firmware/linux-firmware/makefile-fix.patch  | 19 +++++++++++++++++++
 .../linux-firmware/linux-firmware_git.bb              |  6 +++---
 2 files changed, 22 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch
meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch new file +19 -0
new file mode 100644
index 0000000..8a23284
@@ -0,0 +1,19 @@
+build: Avoid use of bashism and Makefile deployment
+
+Upstream-Status: Submitted
+
+Signed-off-by: Otavio Salvador <[email protected]>
+
+diff --git a/Makefile b/Makefile
+index 321a4e2..9bdeef0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,4 +9,7 @@ install:
+ 	mkdir -p $(DESTDIR)$(FIRMWAREDIR)
+ 	cp -r * $(DESTDIR)$(FIRMWAREDIR)
+ 	rm -f $(DESTDIR)/usbdux/*dux $(DESTDIR)/*/*.asm
+-	rm $(DESTDIR)$(FIRMWAREDIR)/{WHENCE,LICENSE.*,LICENCE.*}
++	rm $(DESTDIR)$(FIRMWAREDIR)/Makefile
++	rm $(DESTDIR)$(FIRMWAREDIR)/WHENCE
++	rm $(DESTDIR)$(FIRMWAREDIR)/LICENSE.*
++	rm $(DESTDIR)$(FIRMWAREDIR)/LICENCE.*
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +3 -3
index b9e00fc..6842738 100644
@@ -24,7 +24,8 @@ SRCREV = "c530a75c1e6a472b0eb9558310b518f0dfcd8860"
 PE = "1"
 PV = "0.0+git${SRCPV}"
 
-SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git;protocol=git"
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git;protocol=git \
+           file://makefile-fix.patch"
 
 S = "${WORKDIR}/git"
 
@@ -35,8 +36,7 @@ do_compile() {
 }
 
 do_install() {
-	install -d  ${D}/lib/firmware/
-	cp -r * ${D}/lib/firmware/
+	oe_runmake install DESTDIR=${D}
 
 	# Libertas sd8686
 	ln -sf libertas/sd8686_v9.bin ${D}/lib/firmware/sd8686.bin
Signature · 1 line
1.8.1
#1 lore raw

PATCH 2/4 linux-firmware: Do not deploy license files in packages

We don't ship license files with packages and firmware packages are no different; drop them.

---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 9 ---------
 1 file changed, 9 deletions(-)
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -9
index 6842738..99c226c 100644
@@ -42,9 +42,6 @@ do_install() {
 	ln -sf libertas/sd8686_v9.bin ${D}/lib/firmware/sd8686.bin
 	ln -sf libertas/sd8686_v9_helper.bin ${D}/lib/firmware/sd8686_helper.bin
 
-	# Realtek rtl8192* 
-	install -m 0644 LICENCE.rtlwifi_firmware.txt ${D}/lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt
-
 	# fixup wl12xx location, after 2.6.37 the kernel searches a different location for it
 	( cd ${D}/lib/firmware ; ln -sf ti-connectivity/* . )
 }
@@ -56,20 +53,17 @@ PACKAGES =+ "${PN}-ralink ${PN}-sd8686 ${PN}-rtl8192cu \
 LICENSE_${PN}-ralink = "Firmware-ralink"
 FILES_${PN}-ralink = " \
   /lib/firmware/rt*.bin \
-  /lib/firmware/LICENSE.ralink_firmware.txt \
 "
 
 LICENSE_${PN}-sd8686 = "Firmware-libertas"
 FILES_${PN}-sd8686 = " \
   /lib/firmware/libertas/sd8686_v9* \
   /lib/firmware/sd8686* \
-  /lib/firmware/LICENCE.libertas \
 "
 
 LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi"
 FILES_${PN}-rtl8192cu = " \
   /lib/firmware/rtlwifi/rtl8192cufw.bin \
-  /lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt \
 "
 
 LICENSE_${PN}-rtl8192ce = "Firmware-rtlwifi"
@@ -97,7 +91,6 @@ ALTERNATIVE_LINK_NAME[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac-sdio.bin
 LICENSE_${PN}-bcm4329 = "Firmware-bcm4329"
 FILES_${PN}-bcm4329 = " \
   /lib/firmware/brcm/brcmfmac4329.bin \
-  /lib/firmware/LICENCE.broadcom_bcm43xx \
 "
 ALTERNATIVE_linux-firmware-bcm4329 = "brcmfmac-sdio.bin"
 ALTERNATIVE_TARGET_linux-firmware-bcm4329[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac4329.bin"
@@ -105,7 +98,6 @@ ALTERNATIVE_TARGET_linux-firmware-bcm4329[brcmfmac-sdio.bin] = "/lib/firmware/br
 LICENSE_${PN}-bcm4330 = "Firmware-bcm4330"
 FILES_${PN}-bcm4330 = " \
   /lib/firmware/brcm/brcmfmac4330.bin \
-  /lib/firmware/LICENCE.broadcom_bcm43xx \
 "
 
 ALTERNATIVE_linux-firmware-bcm4330 = "brcmfmac-sdio.bin"
@@ -114,7 +106,6 @@ ALTERNATIVE_TARGET_linux-firmware-bcm4330[brcmfmac-sdio.bin] = "/lib/firmware/br
 LICENSE_${PN}-bcm4334 = "Firmware-bcm4334"
 FILES_${PN}-bcm4334 = " \
   /lib/firmware/brcm/brcmfmac4334.bin \
-  /lib/firmware/LICENCE.broadcom_bcm43xx \
 "
 
 ALTERNATIVE_linux-firmware-bcm4334 = "brcmfmac-sdio.bin"
Signature · 1 line
1.8.1
#2 lore raw

Re: [PATCH 2/4] linux-firmware: Do not deploy license files in packages

Should they be packaged elsewhere

Review

Quoted 9 lines · Otavio Salvador

We don't ship license files with packages and firmware packages are no different; drop them.

---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 9 ---------
 1 file changed, 9 deletions(-)
(quoted diff) +0 -0

linux-firmware_git.bb

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb do_install() { · line 43

Quoted 6 lines

index 6842738..99c226c 100644

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -0
@@ -42,9 +42,6 @@ do_install() {
        ln -sf libertas/sd8686_v9.bin ${D}/lib/firmware/sd8686.bin
        ln -sf libertas/sd8686_v9_helper.bin

${D}/lib/firmware/sd8686_helper.bin

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb do_install() { · line 45

Quoted 3 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -2
-       # Realtek rtl8192*
-       install -m 0644 LICENCE.rtlwifi_firmware.txt

${D}/lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb do_install() { · line 44

Quoted 2 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -1
-
        # fixup wl12xx location, after 2.6.37 the kernel searches a

different location for it

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb PACKAGES =+ "${PN}-ralink ${PN}-sd8686

Quoted 3 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -0
        ( cd ${D}/lib/firmware ; ln -sf ti-connectivity/* . )
 }
@@ -56,20 +53,17 @@ PACKAGES =+ "${PN}-ralink ${PN}-sd8686

${PN}-rtl8192cu \

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb ALTERNATIVE_LINK_NAME[brcmfmac-sdio.bin] =

Quoted 21 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -3
 LICENSE_${PN}-ralink = "Firmware-ralink"
 FILES_${PN}-ralink = " \
   /lib/firmware/rt*.bin \
-  /lib/firmware/LICENSE.ralink_firmware.txt \
 "
 
 LICENSE_${PN}-sd8686 = "Firmware-libertas"
 FILES_${PN}-sd8686 = " \
   /lib/firmware/libertas/sd8686_v9* \
   /lib/firmware/sd8686* \
-  /lib/firmware/LICENCE.libertas \
 "
 
 LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi"
 FILES_${PN}-rtl8192cu = " \
   /lib/firmware/rtlwifi/rtl8192cufw.bin \
-  /lib/firmware/rtlwifi/LICENCE.rtlwifi_firmware.txt \
 "
 
 LICENSE_${PN}-rtl8192ce = "Firmware-rtlwifi"
@@ -97,7 +91,6 @@ ALTERNATIVE_LINK_NAME[brcmfmac-sdio.bin] =

"/lib/firmware/brcm/brcmfmac-sdio.bin

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb ALTERNATIVE_LINK_NAME[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac-sdio.bin

Quoted 7 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -1
 LICENSE_${PN}-bcm4329 = "Firmware-bcm4329"
 FILES_${PN}-bcm4329 = " \
   /lib/firmware/brcm/brcmfmac4329.bin \
-  /lib/firmware/LICENCE.broadcom_bcm43xx \
 "
 ALTERNATIVE_linux-firmware-bcm4329 = "brcmfmac-sdio.bin"
 ALTERNATIVE_TARGET_linux-firmware-bcm4329[brcmfmac-sdio.bin] =

"/lib/firmware/brcm/brcmfmac4329.bin"

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb

Quoted 1 line
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -0
@@ -105,7 +98,6 @@

ALTERNATIVE_TARGET_linux-firmware-bcm4329[brcmfmac-sdio.bin] = "/lib/firmware/br

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb

Quoted 8 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -1
 LICENSE_${PN}-bcm4330 = "Firmware-bcm4330"
 FILES_${PN}-bcm4330 = " \
   /lib/firmware/brcm/brcmfmac4330.bin \
-  /lib/firmware/LICENCE.broadcom_bcm43xx \
 "
 
 ALTERNATIVE_linux-firmware-bcm4330 = "brcmfmac-sdio.bin"
@@ -114,7 +106,6 @@

ALTERNATIVE_TARGET_linux-firmware-bcm4330[brcmfmac-sdio.bin] = "/lib/firmware/br

Quoted 16 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -2
 LICENSE_${PN}-bcm4334 = "Firmware-bcm4334"
 FILES_${PN}-bcm4334 = " \
   /lib/firmware/brcm/brcmfmac4334.bin \
-  /lib/firmware/LICENCE.broadcom_bcm43xx \
 "
 
 ALTERNATIVE_linux-firmware-bcm4334 = "brcmfmac-sdio.bin"
--

1.8.1

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#4 lore raw

Re: [PATCH 2/4] linux-firmware: Do not deploy license files in packages

In reply to Otavio Salvador

Hi Otavio,

Quoted 4 lines · Otavio Salvador

We don't ship license files with packages and firmware packages are no different; drop them.

there may be a good reason to distribute the license files together with the firmware's binairies : it's often requested by the firmware's license.

For example in bcm43xx
2. Restrictions. Licensee shall distribute Software with a copy
of this Agreement.

Best regards,
Eric

#5 lore raw

Re: [PATCH 2/4] linux-firmware: Do not deploy license files in packages

Quoted 9 lines · Eric Bénard

Hi Otavio,

Quoted 4 lines · Otavio Salvador

We don't ship license files with packages and firmware packages are no different; drop them.

Quoted 7 lines

there may be a good reason to distribute the license files together with the firmware's binairies : it's often requested by the firmware's license.

For example in bcm43xx
2. Restrictions. Licensee shall distribute Software with a copy
of this Agreement.

In this case we'll need to have a -license package for each license as we often have more than one fw covered by same license. I'd like to someone to comment on this so I can send a patch to fix it.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#6 lore raw

Re: [PATCH 2/4] linux-firmware: Do not deploy license files in packages

Showing my ignorance here, but is a manifest created with all of the packaged licenses? Is it possible for the developer to ship that if they see fit?

I think what Otavio was trying to do was to keep /lib/firmware from being cluttered with license files. At least, that is the benefit as I see it.

Quoted 32 lines · Otavio Salvador
Quoted 9 lines · Eric Bénard

Hi Otavio,

Quoted 4 lines · Otavio Salvador

We don't ship license files with packages and firmware packages are no different; drop them.

Quoted 7 lines

there may be a good reason to distribute the license files together with the firmware's binairies : it's often requested by the firmware's license.

For example in bcm43xx
2. Restrictions. Licensee shall distribute Software with a copy
of this Agreement.

In this case we'll need to have a -license package for each license as we often have more than one fw covered by same license. I'd like to someone to comment on this so I can send a patch to fix it.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#7 lore raw

Re: [PATCH 2/4] linux-firmware: Do not deploy license files in packages

Quoted 6 lines · John Weber

Showing my ignorance here, but is a manifest created with all of the packaged licenses? Is it possible for the developer to ship that if they see fit?

I think what Otavio was trying to do was to keep /lib/firmware from being cluttered with license files. At least, that is the benefit as I see it.

I see the benefit, I was just giving a reason why the initial recipe writer may have wanted to include the license files in the packages together with the binaries of the firmwares.

Eric

#8 lore raw

PATCH 3/4 linux-firmware: Package vt6656, ath6k, ath9k and ar9170

In reply to Otavio Salvador
---
 .../linux-firmware/linux-firmware_git.bb           | 29 +++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +28 -1
index 99c226c..b181a6b 100644
@@ -18,6 +18,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.radeon;md5=e56b405656593a0c97e478513051ea0e \
                     file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \
                     file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \
                     file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc \
+                    file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \
+                    file://LICENCE.via_vt6656;md5=e4159694cba42d4377a912e78a6e850f \
                    "
 
 SRCREV = "c530a75c1e6a472b0eb9558310b518f0dfcd8860"
@@ -48,7 +50,27 @@ do_install() {
 
 PACKAGES =+ "${PN}-ralink ${PN}-sd8686 ${PN}-rtl8192cu \
              ${PN}-rtl8192ce ${PN}-rtl8192su ${PN}-wl12xx \
-             ${PN}-bcm4329 ${PN}-bcm4330 ${PN}-bcm4334"
+             ${PN}-bcm4329 ${PN}-bcm4330 ${PN}-bcm4334 \
+             ${PN}-vt6656 ${PN}-ar9170 ${PN}-ath6k \
+             ${PN}-ath9k"
+
+LICENSE_${PN}-9170 = "Firmware-atheros_firmware"
+FILES_${PN}-ar9170 = " \
+  /lib/firmware/ar9170*.fw \
+"
+
+LICENSE_${PN}-ath6k = "Firmware-atheros_firmware"
+FILES_${PN}-ath6k = " \
+  /lib/firmware/ath6k \
+"
+
+LICENSE_${PN}-ath9k = "Firmware-atheros_firmware"
+FILES_${PN}-ath9k = " \
+  /lib/firmware/ar9271.fw \
+  /lib/firmware/ar7010*.fw \
+  /lib/firmware/htc_9271.fw \
+  /lib/firmware/htc_7010.fw \
+"
 
 LICENSE_${PN}-ralink = "Firmware-ralink"
 FILES_${PN}-ralink = " \
@@ -82,6 +104,11 @@ FILES_${PN}-wl12xx = " \
   /lib/firmware/ti-connectivity \
 "
 
+LICENSE_${PN}-vt6656 = "Firmware-via_vt6656"
+FILES_${PN}-vt6656 = " \
+  /lib/firmware/vntwusb.fw \
+"
+
 # WARNING: The ALTERNATIVE_* variables are not using ${PN} because of
 # a bug in bitbake; when this is fixed and bitbake learns how to proper
 # pass variable flags with expansion we can rework this patch.
Signature · 1 line
1.8.1
#9 lore raw

PATCH 4/4 linux-firmware: Add missing license information for wl12xx

In reply to Otavio Salvador
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +2 -0
index b181a6b..c1f40fe 100644
@@ -18,6 +18,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.radeon;md5=e56b405656593a0c97e478513051ea0e \
                     file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \
                     file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \
                     file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc \
+                    file://LICENCE.ti-connectivity;md5=186e7a43cf6c274283ad81272ca218ea \
                     file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \
                     file://LICENCE.via_vt6656;md5=e4159694cba42d4377a912e78a6e850f \
                    "
@@ -98,6 +99,7 @@ FILES_${PN}-rtl8192su = " \
   /lib/firmware/rtlwifi/rtl8712u.bin \
 "
 
+LICENSE_${PN}-wl12xx = "Firmware-ti-connectivity"
 FILES_${PN}-wl12xx = " \
   /lib/firmware/wl12* \
   /lib/firmware/TI* \
Signature · 1 line
1.8.1
#10 lore raw
In reply to Otavio Salvador
Quoted 6 lines · Otavio Salvador

This uses the install procedure included in the Makefile which avoids code dupplication.

---
 .../linux-firmware/linux-firmware/makefile-fix.patch  | 19

+++++++++++++++++++

Quoted 3 lines
 .../linux-firmware/linux-firmware_git.bb              |  6 +++---
 2 files changed, 22 insertions(+), 3 deletions(-)
 create mode 100644

meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch

Quoted 2 lines

diff --git

a/meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch b/meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch

Quoted 14 lines

new file mode 100644
index 0000000..8a23284

meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch new file +9 -0
@@ -0,0 +1,19 @@
+build: Avoid use of bashism and Makefile deployment
+
+Upstream-Status: Submitted
+
+Signed-off-by: Otavio Salvador <[email protected]>
+
+diff --git a/Makefile b/Makefile
+index 321a4e2..9bdeef0 100644
+--- a/Makefile

meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch line 19

Quoted 10 lines
meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch new file +10 -0
++++ b/Makefile
+@@ -9,4 +9,7 @@ install:
+       mkdir -p $(DESTDIR)$(FIRMWAREDIR)
+       cp -r * $(DESTDIR)$(FIRMWAREDIR)
+       rm -f $(DESTDIR)/usbdux/*dux $(DESTDIR)/*/*.asm
+-      rm $(DESTDIR)$(FIRMWAREDIR)/{WHENCE,LICENSE.*,LICENCE.*}
++      rm $(DESTDIR)$(FIRMWAREDIR)/Makefile
++      rm $(DESTDIR)$(FIRMWAREDIR)/WHENCE
++      rm $(DESTDIR)$(FIRMWAREDIR)/LICENSE.*
++      rm $(DESTDIR)$(FIRMWAREDIR)/LICENCE.*

Can you explain this change ?

Review

Quoted 1 line
(quoted diff) +0 -0

linux-firmware_git.bb

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb SRCREV = "c530a75c1e6a472b0eb9558310b518f0dfcd8860" · line 27

Quoted 8 lines

index b9e00fc..6842738 100644

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +0 -1
@@ -24,7 +24,8 @@ SRCREV = "c530a75c1e6a472b0eb9558310b518f0dfcd8860"
 PE = "1"
 PV = "0.0+git${SRCPV}"
 
-SRC_URI = "git://

git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git;protocol=git "

meta/recipes-kernel/linux-firmware/linux-firmware_git.bb SRCREV = "c530a75c1e6a472b0eb9558310b518f0dfcd8860" · line 27

Quoted 1 line
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +1 -0
+SRC_URI = "git://

git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git;protocol=git\

Quoted 23 lines
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +2 -3
+           file://makefile-fix.patch"
 
 S = "${WORKDIR}/git"
 
@@ -35,8 +36,7 @@ do_compile() {
 }
 
 do_install() {
-       install -d  ${D}/lib/firmware/
-       cp -r * ${D}/lib/firmware/
+       oe_runmake install DESTDIR=${D}
 
        # Libertas sd8686
        ln -sf libertas/sd8686_v9.bin ${D}/lib/firmware/sd8686.bin
--

1.8.1

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#11 lore raw
Quoted 37 lines · Khem Raj
Quoted 33 lines · Otavio Salvador

This uses the install procedure included in the Makefile which avoids code dupplication.

---
 .../linux-firmware/linux-firmware/makefile-fix.patch  | 19
+++++++++++++++++++
 .../linux-firmware/linux-firmware_git.bb              |  6 +++---
 2 files changed, 22 insertions(+), 3 deletions(-)
 create mode 100644

meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch b/meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch new file mode 100644
index 0000000..8a23284

meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch new file +13 -0
@@ -0,0 +1,19 @@
+build: Avoid use of bashism and Makefile deployment
+
+Upstream-Status: Submitted
+
+Signed-off-by: Otavio Salvador <[email protected]>
+
+diff --git a/Makefile b/Makefile
+index 321a4e2..9bdeef0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,4 +9,7 @@ install:
+       mkdir -p $(DESTDIR)$(FIRMWAREDIR)
+       cp -r * $(DESTDIR)$(FIRMWAREDIR)
Quoted 8 lines

meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch line 19

Quoted 6 lines
meta/recipes-kernel/linux-firmware/linux-firmware/makefile-fix.patch new file +6 -0
+       rm -f $(DESTDIR)/usbdux/*dux $(DESTDIR)/*/*.asm
+-      rm $(DESTDIR)$(FIRMWAREDIR)/{WHENCE,LICENSE.*,LICENCE.*}
++      rm $(DESTDIR)$(FIRMWAREDIR)/Makefile
++      rm $(DESTDIR)$(FIRMWAREDIR)/WHENCE
++      rm $(DESTDIR)$(FIRMWAREDIR)/LICENSE.*
++      rm $(DESTDIR)$(FIRMWAREDIR)/LICENCE.*

Can you explain this change ?

From the patch file; I sent it to upstream already

+build: Avoid use of bashism and Makefile deployment

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br