Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751421AbdGRI4x convert rfc822-to-8bit (ORCPT ); Tue, 18 Jul 2017 04:56:53 -0400 Received: from mail.eperm.de ([89.247.134.16]:60660 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334AbdGRI4w (ORCPT ); Tue, 18 Jul 2017 04:56:52 -0400 From: Stephan =?ISO-8859-1?Q?M=FCller?= To: Arnd Bergmann Cc: "Jason A. Donenfeld" , Greg Kroah-Hartman , linux-crypto@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [RFC PATCH v12 4/4] LRNG - enable compile Date: Tue, 18 Jul 2017 10:56:49 +0200 Message-ID: <2765965.2brO3pd8z3@positron.chronox.de> In-Reply-To: References: <3910055.ntkqcq1Chb@positron.chronox.de> <5071655.YFHJQhx4QD@positron.chronox.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 42 Am Dienstag, 18. Juli 2017, 10:51:41 CEST schrieb Arnd Bergmann: Hi Arnd, > On Tue, Jul 18, 2017 at 9:59 AM, Stephan M?ller wrote: > > Add LRNG compilation support. > > > > diff --git a/drivers/char/Makefile b/drivers/char/Makefile > > index 53e3372..87e06ec 100644 > > --- a/drivers/char/Makefile > > +++ b/drivers/char/Makefile > > @@ -2,7 +2,15 @@ > > > > # Makefile for the kernel character device drivers. > > # > > > > -obj-y += mem.o random.o > > +obj-y += mem.o > > + > > +ifeq ($(CONFIG_LRNG),y) > > + obj-$(CONFIG_LRNG) += lrng.o > > + lrng-y += lrng_base.o lrng_chacha20.o > > +else > > + obj-y += random.o > > +endif > > I think you can write the same in a more readable way without the > intermediate object: > > ifdef CONFIG_LRNG > obj-y += lrng_base.o lrng_chacha20.o > else > obj-y += random.o > endif Thank you for the hint, it will be included. > > Arnd Ciao Stephan