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.87 #1 (Red Hat Linux)) id 1dXULi-0003Kl-WA for barebox@lists.infradead.org; Tue, 18 Jul 2017 15:23:48 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 18 Jul 2017 17:23:20 +0200 Message-Id: <20170718152320.16792-1-u.kleine-koenig@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] scripts: Provide script that helps using cpp defines in dcd tables To: barebox@lists.infradead.org VGhpcyBzY3JpcHQgd2FzIHVzZWQgdG8gaGVscCBjcmVhdGUgY29tbWl0ICgiQVJNOiBpbXg6IHVz ZSByZWdpc3RlcgpkZWZpbmVzIGluIGlteGNmZyBmaWxlcyBpbnN0ZWFkIG9mIHBsYWluIG51bWJl cnMiKS4KCkl0IGlzIGRvY3VtZW50ZWQgaW4gUGVybCBQb2QsIHlvdSBjYW4gcHJldHR5LXByaW50 IGl0IHVzaW5nCgoJJCBwZXJsZG9jIHNjcmlwdHMvcmVnc3Vic3QucGwuCgpTaWduZWQtb2ZmLWJ5 OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPgotLS0K IHNjcmlwdHMvcmVnc3Vic3QucGwgfCAxMjMgKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrKysrKysrKysrKysrKysrKysrKwogMSBmaWxlIGNoYW5nZWQsIDEyMyBpbnNlcnRpb25zKCsp CiBjcmVhdGUgbW9kZSAxMDA3NTUgc2NyaXB0cy9yZWdzdWJzdC5wbAoKZGlmZiAtLWdpdCBhL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