From patchwork Wed Jan 16 12:14:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 212500 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CDD002C0080 for ; Wed, 16 Jan 2013 23:14:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AAB56101D0C; Wed, 16 Jan 2013 12:14:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B8FsgJ0u7ydI; Wed, 16 Jan 2013 12:14:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A697AFFBB2; Wed, 16 Jan 2013 12:14:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E813F8F74B for ; Wed, 16 Jan 2013 12:14:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E8688149B for ; Wed, 16 Jan 2013 12:14:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id drmhATWw9AUe for ; Wed, 16 Jan 2013 12:14:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) by whitealder.osuosl.org (Postfix) with ESMTPS id 829DE8148F for ; Wed, 16 Jan 2013 12:14:33 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id e13so2292823iej.32 for ; Wed, 16 Jan 2013 04:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=xRJyoto8VSzws6uqU8THKmLFynSt1BMln6he4fI5AlQ=; b=IU0GZWXWa3vCGiqgfTzyomUmrShk3fPlGO1fi3SDZXgwegmE033gJtYPEjDlkxW/LP Qoh30l0m36P7GI7wKE0PBb9OHPUAfOBJEmMTUc578WptniY+ntw4dSrQfgQy+Svr/3M1 +WBUevZaNJnrUMdAcdEC1BJbNT+qEwt9/+GODqTvpkrJWGqGSwQkML9bVveN84E6rZvc kQu6y18VTcIcSGzUl8LUM7Ps1CMYV64xDVZPtBeu+v0McOVg3SNrEX99HSQDCRVmmU/X BbaNKaYVFppWHw217LgfxvUxi0Gyc3yPpKuEysR2qDj3oK1RKmdC/T148IPtJNLHldZD 9RiA== X-Received: by 10.50.13.173 with SMTP id i13mr4569039igc.93.1358338472933; Wed, 16 Jan 2013 04:14:32 -0800 (PST) Received: from localhost.localdomain (173-26-135-185.client.mchsi.com. [173.26.135.185]) by mx.google.com with ESMTPS id fv6sm4203152igc.17.2013.01.16.04.14.31 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jan 2013 04:14:32 -0800 (PST) From: Matt Weber To: buildroot@busybox.net Date: Wed, 16 Jan 2013 06:14:41 -0600 Message-Id: <1358338481-8467-1-git-send-email-rc.lsw.collaborate@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: Matthew Weber Subject: [Buildroot] [PATCH 1/1] added python unicode selection to menu X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Matthew Weber Signed-off-by: Matt Weber --- package/python/Config.in | 18 ++++++++++++++++++ package/python/python.mk | 6 ++++++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/package/python/Config.in b/package/python/Config.in index 4089cce..cb032da 100644 --- a/package/python/Config.in +++ b/package/python/Config.in @@ -83,6 +83,24 @@ config BR2_PACKAGE_PYTHON_UNICODEDATA help Unicode character database (used by stringprep module) (large). +if BR2_PACKAGE_PYTHON_UNICODEDATA + +choice +>.......prompt "Python unicode database format" +>.......default BR2_PACKAGE_PYTHON_UCS2 +>.......help +>....... Select Python unicode database format for target + +config BR2_PACKAGE_PYTHON_UCS2 +>.......bool "Universal Character Set 2-byte (UCS2)" + +config BR2_PACKAGE_PYTHON_UCS4 +>.......bool "Universal Character Set 4-byte (UCS4)" + +endchoice + +endif + config BR2_PACKAGE_PYTHON_SQLITE bool "sqlite module" select BR2_PACKAGE_SQLITE diff --git a/package/python/python.mk b/package/python/python.mk index 71591b7..66a9db5 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -96,6 +96,12 @@ ifneq ($(BR2_PACKAGE_PYTHON_UNICODEDATA),y) PYTHON_CONF_OPT += --disable-unicodedata endif +# Default is UCS2 w/o a conf opt +ifeq ($(BR2_PACKAGE_PYTHON_UCS4),y) +HOST_PYTHON_CONF_OPT += --enable-unicode=ucs4 +PYTHON_CONF_OPT += --enable-unicode=ucs4 +endif + ifeq ($(BR2_PACKAGE_PYTHON_BZIP2),y) PYTHON_DEPENDENCIES += bzip2 else