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 1iBIHJ-0002sZ-7R for barebox@lists.infradead.org; Fri, 20 Sep 2019 12:44:51 +0000 From: Michael Tretter Date: Fri, 20 Sep 2019 14:44:33 +0200 Message-Id: <20190920124433.31026-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] 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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