From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iCfll-0002zw-Hh for barebox@lists.infradead.org; Tue, 24 Sep 2019 08:02:01 +0000 From: Michael Tretter Date: Tue, 24 Sep 2019 10:01:52 +0200 Message-Id: <20190924080152.7085-1-m.tretter@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2] blspec: skip entries that are not blspec entries To: barebox@lists.infradead.org Cc: =?UTF-8?q?Thomas=20H=C3=A4mmerle?= , Michael Tretter VGhlIGxpc3Qgb2YgYm9vdCBlbnRyaWVzIGNhbiBjb250YWluIGl0ZW1zIHRoYXQgYXJlIG5vdCBi bHNwZWMgZW50cmllcy4KRm9yIGV4YW1wbGUsIHRoZSBib290Y2hvb3NlciBhbHNvIGFkZHMgYW4g aXRlbSB0byB0aGlzIGxpc3QuIFRoZXJlZm9yZSwKYmxzcGVjIGNhbm5vdCB1bmNvbmRpdGlvbmFs bHkgaW50ZXJwcmV0IGVudHJpZXMgYXMgYmxzcGVjIGVudHJpZXMuCgpUaGUgZXJyb3IgaXMgcmVw cm9kdWNlZCBieSBsaXN0aW5nIHRoZSBib290IGVudHJpZXMgd2l0aCB0aGUgYm9vdGNob29zZXIK YW5kIGEgcm9vdGZzIHdpdGggYmxzcGVjIGVudHJpZXMsIGUuZy46CgoJYm9vdCAtbCBib290Y2hv b3NlciAvbW50L25mcwoKQ2hlY2sgaWYgYSBib290ZW50cnkgaXMgYSBibHNwZWMgZW50cnkgYnkg dGVzdGluZyBpZiB0aGUgYm9vdCBmdW5jdGlvbgppcyBibHNwZWNfYm9vdC4KClJlc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