From patchwork Wed Aug 22 16:27:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Harkin X-Patchwork-Id: 144844 Delivered-To: patches@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp209305ljw; Wed, 22 Aug 2018 09:27:33 -0700 (PDT) X-Received: by 2002:a1c:7dc7:: with SMTP id y190-v6mr1839836wmc.62.1534955253469; Wed, 22 Aug 2018 09:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534955253; cv=none; d=google.com; s=arc-20160816; b=luos8FfFqFuI00tHzdLedz6RMGDHOZkAoVn9nQBUzDKWuy3KWJIljXDjlDEWYVhDMo qpmpokX0o3iyOm03w+aLxsf1dy2zOJbKWDAbvBW1G8L8KDZwnR3HPFNTx/+5Pz5qgxX+ 0rPr0BlirLKNBbmCFsyB1CrQhETpQlJgDQaV5JoVjf3BHi/lknoJBVOQHBGru0FWfCjM B32+iCJmCSx31/0KIuKrimvoFW1s6maOSPsyZdmDjJjDKDPUS30yH5BaVSe9G4Sd9dw/ 679KyCpC/LKBZVwgsFzlm9lA1F2akW3Nd47hfFc3hEUiMMhHCtY4WmDFWc8jUJE0BqBQ mdvg== 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=TaFGTKlOzWObHS3ZLsYd5K06maTqkuHgbSDMq/6oWIqfYfQa8Kurj5uXjO4dcsV+JE YZxXUsSV2t7o9zHjV3FdQwqXcqwZBbvzlRa3OGhRmX6bfm4wIdm2G/DhFMAgAMhgfKxh GjmTWfY+JEZNdWg7UrVVzDBMYdOXvOLPlvaCwnBIFVR2LKg7NV8WXO2te00zXWBHbbQU 7C5EHRXjJlY15ix0wB+8KWiSwO8YQ+ITKgOxYOoShZ54FGxpG8xnfaM1HBs38dOYTzp4 2maB5J8GB/hQBjgtzyDPDJ4vqQhUPAeE1PGuyMTWcUxmwCgmc3Hqn1LjiRXTGmH1uUNk +JAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ve4xl3bC; 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 k11-v6sor784001wre.62.2018.08.22.09.27.33 for (Google Transport Security); Wed, 22 Aug 2018 09:27:33 -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=Ve4xl3bC; 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=Ve4xl3bC8736wPr8saeVFPE3koYlHX+FTPIwafWXHZKUhC6zxWYCMAVt652Bx8mc/F 4UZS+0LP2GYs1qmGWOuqjpPoEaKBm7aU55yScYGHImRaPeN0bkzAr6RYDn36hGIEiWs6 zNGKel3BoozXL1coBB96PQV5rfkoliE6KcQws= 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=pLHJA2OpgoSfekhbFG2yc3XvYtr85QX81EDH8gbxf6qYE78z7jARRrTw9yEi8LwYB+ 2rPT/QHzpU62EwwKNhpJXFCaR/VR0JclFcpdnS15VWGcNpUzcE6T1FV/SFEG53AbLJVA STETp8wcooGkAdsqUuadRxge+9Bic7Rou5MnVu3QcXTBJXpLsdIFsU5qawx2Vm6EZm0N 2RvJGSCWGxAyawlXJn/mdbh5OVZaxZRUchhU8Qv8v4+7ROuOdTDnMe4btHKabNzDhhQE D9BeVDH/I58rvU6rxN9CsWVDuimmpD9kjDZjTYthRGRANu9JVTPU+HTir3maLuVzB0yg OQIQ== X-Gm-Message-State: AOUpUlGfwe0IU/I5s5TmoMvP+3dER/c9FirLeJNTIUDWI30GGKsksLGO qultkVPHnZdtOBPhSsVlrFyMAvo+ X-Google-Smtp-Source: AA+uWPzUwWnQNf/IVTLaracydGY57+JZGxkWC41dbSXlkgw1SU+kKATxwdSeiL7tynCN0WJRFLJ5jw== X-Received: by 2002:a5d:46d1:: with SMTP id g17-v6mr17111199wrs.76.1534955253222; Wed, 22 Aug 2018 09:27:33 -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 w4-v6sm3165306wro.24.2018.08.22.09.27.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Aug 2018 09:27:32 -0700 (PDT) From: Ryan Harkin To: Openembedded-core-request@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:27:16 +0100 Message-Id: <1534955236-559-4-git-send-email-ryan.harkin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534955236-559-1-git-send-email-ryan.harkin@linaro.org> References: <1534955236-559-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 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 \