From patchwork Wed Aug 22 16:30:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Harkin X-Patchwork-Id: 144848 Delivered-To: patches@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp212108ljw; Wed, 22 Aug 2018 09:30:53 -0700 (PDT) X-Received: by 2002:adf:dd07:: with SMTP id a7-v6mr34044871wrm.2.1534955453511; Wed, 22 Aug 2018 09:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534955453; cv=none; d=google.com; s=arc-20160816; b=wBz0ThtBJX2c4eoVk5wKMLu6OyIK80C2CqNZma3W/AdTLgTjzP/xdWgJvi2Pm6IhgJ Rbq2EK0u6rNof1ardvBaJwh5N7+6bZIBm0x5+Vdze42GOKyZESUCt8WvAtZq/52ZBcQL De6cKZLuiZmsf2bkLzZ4Wzek95pICAuLENvX3ygfyQ0JHvh6yYag72HrUMbt6IY7jUXy HDe8mz8PWKnq/kIdeHbAWUv8UVaaoQ0i/9baUuejjGFLY8Nr/MlEDQk6RqvtMOvz3VuJ fzdlq2YUbpRXe+56X7MZUl5uzZSXfUrPKtu3NulBZyDyDj5ND2PxDUnFgDf7s5V3s9qs gS6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=+2ROzr4V8QAXRjjsaBFHndD5m6DInSFzVWYrCdpZOvI=; b=nw6M4YIsMTrcT8kusGb6S8W1N1oMr29UMsZ4sUuYRm0X3p/sbHw/btrKv1yhZiHZPJ eNiYmtqwB2MjNX99Z1j4m5hmYL1WBGJktOqYgdPhnsE48KdXwmSiwVEcJCBRyoqGAsBi EXt5Zbjy2oAcgiVi7ICBcY5GfovbPZvPHAWkHNshI3TQu5HjNdpj1kmvQ9FtILA4mdOs 5cTC8yQkK577gEYM9gqHNRqNiY0gC2yE09/sx8NsLm8Cw2I/yiIf8zKuv4caLwi2WTiE KoHR1DJpMu0WQQw0Bz4ReHaUTb4QsqtqyAD2k3bf0tONbXWTt2OOoJKnFdC/gFAU04iA MqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVqo9OrN; spf=pass (google.com: domain of ryan.harkin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ryan.harkin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o139-v6sor625791wmd.23.2018.08.22.09.30.53 for (Google Transport Security); Wed, 22 Aug 2018 09:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ryan.harkin@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVqo9OrN; spf=pass (google.com: domain of ryan.harkin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ryan.harkin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+2ROzr4V8QAXRjjsaBFHndD5m6DInSFzVWYrCdpZOvI=; b=CVqo9OrNLt9OiScR2vwX4f2lNDr73PdVag3jiRaG/s0dPPYUfzqrRgtnPG9lQo+0yX cLbPA5Qa+j9bTjPPNCW9d9dbfyrRY9UJxU78RE38SyXzy5mh+gfLxkUrdUD02nu8R8pt YJEdkNSS4wPmeRWuUTwBe9P4e+ip8969kg8s0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+2ROzr4V8QAXRjjsaBFHndD5m6DInSFzVWYrCdpZOvI=; b=U2R4oFp8pK5a7vXIaFf4wUsbWcaDaKCKG6F4v6P9GNZtfOAB/IcknY5pd3ykxeIhN1 u1fx+S209bZKWh6rpNwLxEUj+/BYT6evXJB8AKJBPlSwPqXUA0b1EJ/fKxOjg4MOiq77 p5bFSdO8LabHM5Q0LrGTzZgtO996RFUBQCK/QwgsIM+3Ld9eewW6jZnmVZ0ovyz0On8k 3B7l0OFVa05TiQMxy6AEZlv00CLEOswZ5uFWKczuGQ9KOAEY288zJAJNW9TRaO9CmlBR HGzxzx6Q16IVx2KssGMKqJ/yda6aX/fD50Wzplnu9n7i4r/+V0Vg6HN4nfOhGO4dBIDI HoHQ== X-Gm-Message-State: APzg51AmehNpVU2CWXTaAQm6KJaRE7udbtzkHYEHj6ZNbBM6jFTUlt88 o/syLlPtFEpJ7jS9Bo0kGBtscHIb X-Google-Smtp-Source: ANB0VdYoroy01jUPjqDHdgh2F9iH26oUb83p1AyoflIE9hSdHyk0ZtRoY8kEzahHnFdiPHUUsmZ52A== X-Received: by 2002:a1c:3e8f:: with SMTP id l137-v6mr2796573wma.132.1534955453253; Wed, 22 Aug 2018 09:30:53 -0700 (PDT) Return-Path: Received: from localhost.localdomain (82-69-54-187.dsl.in-addr.zen.co.uk. [82.69.54.187]) by smtp.gmail.com with ESMTPSA id m8-v6sm2802229wrf.93.2018.08.22.09.30.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Aug 2018 09:30:52 -0700 (PDT) From: Ryan Harkin To: openembedded-core@lists.openembedded.org Cc: martin.jansa@gmail.com, patches@linaro.org, daiane.angolini@nxp.com Subject: [RFC 3/3] linux-firmware: MACHINEOVERRIDES for BCM43430 NVRAM Date: Wed, 22 Aug 2018 17:30:36 +0100 Message-Id: <1534955436-729-4-git-send-email-ryan.harkin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534955436-729-1-git-send-email-ryan.harkin@linaro.org> References: <1534955436-729-1-git-send-email-ryan.harkin@linaro.org> The Linux kernel currently expects a single NVRAM file for BCM43430 named brcmfmac43430-sdio.txt. Allow the machine to specify an override to link its module specific NVRAM to the filename expected by the kernel. Signed-off-by: Ryan Harkin --- meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.7.4 Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb index 8c54f28..b647abc 100644 --- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb @@ -226,6 +226,18 @@ do_install() { ( cd ${D}${nonarch_base_libdir}/firmware ; ln -sf ti-connectivity/* . ) } +# Adding bcm43430-nvram-{module type} to MACHINEOVERRIDES will create a +# softlink for the module specific NVRAM file to the filename expected +# by the Linux kernel +FILES_${PN}-bcm43430-nvram_append_bcm43430-nvram-mur1dx = " ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt" +do_install_append_bcm43430-nvram-mur1dx() { + ( cd ${D}${nonarch_base_libdir}/firmware/brcm/ ; ln -sf brcmfmac43430-sdio.MUR1DX.txt brcmfmac43430-sdio.txt) +} +FILES_${PN}-bcm43430-nvram_append_bcm43430-nvram-ap6212 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt" +do_install_append_bcm43430-nvram-ap6212() { + ( cd ${D}${nonarch_base_libdir}/firmware/brcm/ ; ln -sf brcmfmac43430-sdio.AP6212.txt brcmfmac43430-sdio.txt) +} + PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \ ${PN}-mt7601u-license ${PN}-mt7601u \