From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MR6PD-0007Fw-18 for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:28:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MR6P7-00079I-5l for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:28:26 -0400 Received: from [199.232.76.173] (port=46949 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR6P6-000794-UZ for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:28:21 -0400 Received: from mx20.gnu.org ([199.232.41.8]:37218) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MR6P6-0007EB-E5 for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:28:20 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MR6P5-0000kd-EG for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:28:19 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6FFSH7D020221 for ; Wed, 15 Jul 2009 11:28:17 -0400 From: quintela@redhat.com Date: Wed, 15 Jul 2009 17:26:28 +0200 Message-Id: Subject: [Qemu-devel] [RFC PATCH 0/6] Generate config_h from config.mak List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Juan Quintela From: Juan Quintela Hi This patches apply on top of my previous series. I generate $target_dir/config.h from $target_dir/config.mak ToDo: - generate config-host.h from config-host.mak - USE_NPTL -> can I rename it to CONFIG_USE_NPTL? - TARGET_ABI_MIPS{O32,N32,N64}. Rest of architectures use names like: TARGET_ABI_MIPSN32 -> TARGET_MIPSN32 TARGET_ABI_MIPSN64 -> TARGET_MIPSN64 not sure how to do the TARGET_ABI_MIPSO32 This one is only to have coherent options names, rest of architectures have enough with TARGET_ARCH, TARGET_ARCH2, TARGET_BASE_ARCH, TARGET_$ARCH_NAME TARGET_$BASE_ARCH_NAME - TARGET_ARCH2 -> can we rename it to TARGET_SUBARCH or something more descriptive - do we want TARGET_BASE_ARCH defined for .h files? - move all CPPFLAGS/CFLAGS/LDFLAGS/LIBS to configure and export only this 4 variables (both for config.mak and config-host.mak). I don't think that this only 4 vars will be enough, but I am sure that we can export less than we have now. - remove rest of intelligence (also known as ifs) possible from Makefile* and moved it back to ./configure - once previous steps are done, be able to configure the devices using this (or similar mechanism) Comments? Later, Juan. Juan Quintela (6): simplify TARGET_BASE_ARCH generation simplify TARGET_ARCH2 generation simplify TARGET_ABI_DIR generation rename s/config_mak/config_host_mak/ and s/config_h/config_host_h/ Refactor config_softfloat selection in another list Generate $target_dir/config.h from $target_dir/config.mak Makefile.target | 11 -- configure | 391 ++++++++++++++++++++++++++----------------------------- create_config | 55 ++++++++ 3 files changed, 242 insertions(+), 215 deletions(-) create mode 100755 create_config