From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Mon, 27 Oct 2008 21:11:41 +0100 Subject: [Buildroot] Synchronisation of dependencies between Config.in and .mk files ? In-Reply-To: <87zlkphoas.fsf@macbook.be.48ers.dk> References: <20081027175645.7e7cb096@surf> <87zlkphoas.fsf@macbook.be.48ers.dk> Message-ID: <20081027211141.0935d9c0@surf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Mon, 27 Oct 2008 19:43:07 +0100, Peter Korsgaard a ?crit : > Do you have any ideas about how to solve this in a nicer way? Not really. Maybe the Config.in read by kconfig could be generated by the Makefile system. Either completely from the Makefiles, or from Config.in.tmp files, parsed and modified to contain the dependencies. However, there are some packages with optional dependencies, like in matchbox: ifeq ($(strip $(BR2_PACKAGE_X11R7_LIBXCOMPOSITE)),y) ifeq ($(strip $(BR2_PACKAGE_X11R7_LIBXPM)),y) MATCHBOX_WM_OPTS+=--enable-composite MATCHBOX_WM_DEPS+=xlib_libXcomposite MATCHBOX_WM_DEPS+=xlib_libXpm MATCHBOX_LIB_DEPS+=xlib_libXpm endif endif I'm not sure how to handle that kind of case. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com