From patchwork Wed May 20 20:08:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 11561543 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6FDC138A for ; Wed, 20 May 2020 20:08:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 96055207F9 for ; Wed, 20 May 2020 20:08:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A9SolZxR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726905AbgETUIV (ORCPT ); Wed, 20 May 2020 16:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgETUIU (ORCPT ); Wed, 20 May 2020 16:08:20 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98735C061A0E for ; Wed, 20 May 2020 13:08:20 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id b6so4902026qkh.11 for ; Wed, 20 May 2020 13:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f/VK4OptNVT0gbfB6Dc4FzOCwrLQe3MO+pzGN0m+gww=; b=A9SolZxRaP0ae6XvmrXfPQHeZH4KvO8Ywbrg1ojwShwCONCJaTM2Hg5leNey3zDRcx 3jxitFlb51J15GoGsfPDGwFSdqiuHxl1MGYLbgziJTRfcdb7jfs8pbEvWxk8gM/6AMgx gEZbUPctXHyyHJk6akXx2tlkDR+pypQkZl8yswo/npJXAPk3P6o44bfwFG7iSDK4LoXf xm3MmJpznHDOSAJGBiXglbuxIM+2nameUOtyQZWJZuM3Zgu1klYRW6enYc7yJSaBBdTL cXmo7sZWRzZwkaleL0vyjqKTY+Wt/vyYMyiDKS6CrkEZjMtfNfcNrEpzGPN9GCJvllVh aQiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f/VK4OptNVT0gbfB6Dc4FzOCwrLQe3MO+pzGN0m+gww=; b=tbjXC6/5n7eHmEEGitYuM9oy/70wJ2Vo1+5czlXBfp6vUjgC55oV6HkFE7OFNHYqXo K3OP/DMqSPzSTntUQMHXP+C8P57Cfknv2rti/0JGyXgq5M1mWYGJFYAp0FnEhcgmn6XG H0aKqiGkxkNZ3/3mTUHJik31yvulOkSlcc+AOdFSWokDVvaCZKNseoP9Map4+6XDQmYm mPEiBGuNDhwFnww16MpVLLlYmVfmTJttXNbqeNkYQQh7wLKzTDK98pNvAe5+wuJx1Umf qGks7sXtUJ5Ih927KhGeqzyBHdxaFG5n5Y5J4rfPqL8lWTqUeiTmNh7BJbWGbbWs/29x JmJw== X-Gm-Message-State: AOAM531M0TbImKmXZZn6KGWwb902rKuxyKeIkKRB3TnR7rj3t9BwEEDo ZQhWVgtotawZWgSdqYDvxIM39sb1 X-Google-Smtp-Source: ABdhPJxeKZ2v2vyFICweXkbGQXH3WxKurJQJrWPTCUhRi30EJeiDGizrR+RYTaVQpvuchC2eWsoGXg== X-Received: by 2002:a37:a4d8:: with SMTP id n207mr6708772qke.354.1590005299823; Wed, 20 May 2020 13:08:19 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:2725]) by smtp.gmail.com with ESMTPSA id i5sm3087822qtp.66.2020.05.20.13.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 13:08:19 -0700 (PDT) From: Jes Sorensen X-Google-Original-From: Jes Sorensen To: ebiggers@kernel.org Cc: linux-fscrypt@vger.kernel.org, kernel-team@fb.com, Jes Sorensen Subject: [PATCH 1/2] Fix Makefile to delete objects from the library on make clean Date: Wed, 20 May 2020 16:08:10 -0400 Message-Id: <20200520200811.257542-2-Jes.Sorensen@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200520200811.257542-1-Jes.Sorensen@gmail.com> References: <20200520200811.257542-1-Jes.Sorensen@gmail.com> MIME-Version: 1.0 Sender: linux-fscrypt-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org From: Jes Sorensen Signed-off-by: Jes Sorensen --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1a7be53..e7fb5cf 100644 --- a/Makefile +++ b/Makefile @@ -180,8 +180,8 @@ help: done clean: - rm -f $(DEFAULT_TARGETS) $(TEST_PROGRAMS) $(LIB_OBJS) $(ALL_PROG_OBJ) \ - .build-config + rm -f $(DEFAULT_TARGETS) $(TEST_PROGRAMS) \ + lib/*.o programs/*.o .build-config FORCE: From patchwork Wed May 20 20:08:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 11561545 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 51E5160D for ; Wed, 20 May 2020 20:08:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B6C4207ED for ; Wed, 20 May 2020 20:08:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c0ZBGcEb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726940AbgETUI0 (ORCPT ); Wed, 20 May 2020 16:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgETUIZ (ORCPT ); Wed, 20 May 2020 16:08:25 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66588C061A0E for ; Wed, 20 May 2020 13:08:24 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id l3so1985581qvo.7 for ; Wed, 20 May 2020 13:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ej7IfQ9U14w8+MU2Zh5Ht3olzt3sfcIyqeVkaMN4yhI=; b=c0ZBGcEb/2j+mXFhAKDOO+U9CzerE6VpWgfmWm/NEvmEWO/Q1s3xH73n7cHapPhfLB JAIGZZtWMdiOww2gAgJWJYHBXRSEuPXalwXIRNH5Avr2dQZsh4mtA6MQqOV2XmwUS6+X yjTMNVutkq/0d/HWS1a3NufFgq1PUIjYvu3ez/MuqI2wktEy+5p3ndj+5pn5q5qHXDMi kAq+ypU/EvQkRRBEj1AiF9kyK/J2HzSe3RmSeLXzctNLUN4r9Obz/Wkhq2D4LxpAybSX 5XM0NzPuQK5CHuLrbckBIvZNpHqe7RR2XDbaPCc3ac9lmnuvYB7E6G+SljImKe2aj7Sw jO+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ej7IfQ9U14w8+MU2Zh5Ht3olzt3sfcIyqeVkaMN4yhI=; b=oLeAmsmORxLv5BLqmdlg1laEsg2yGsbuyvYzT3CjdRNgK3sPBbjeuYutKvU9CqWuPZ VHurgm8YPTpgg37FRpq/OlY1UFvB4vDeMW/ksKhEk1W6LwYEHrI2GpAOJIQZm5C+ATQK Z9SmmN1iaXtcpKw7kiN7M5lh4oJSjCSuyJcn30IXg3gLqYC+8Gl/G/6RxTI8o5zF0a9A K5RxOgAHZCTJtYAA6Zahr3TD8qs1/9yTdrwU0CW8pJ495WKiZU3f6JeO2YV6AaLYVDHl ozqOHDcEawQnCYBNs+MCoO/4Ij4JWV7UDnjMnuVWrkPXEkOqKEWcISIykO4uEt7kvCtS Fu2g== X-Gm-Message-State: AOAM530CeGLISIsdoqjbfG46KtJyuGDpnZo4mQ5AVFCNKL6rCqgrdl2W D5Vz35SQXmWK5GJs4zOqJIFneY79 X-Google-Smtp-Source: ABdhPJx+eMXhkJuUQNxM/wMY03PP9oBrLNX+lJEVMFLVcU6vLxFfjsrg2YjpjAlSN7UOeSHVdqwQkQ== X-Received: by 2002:a05:6214:506:: with SMTP id v6mr6816112qvw.70.1590005303577; Wed, 20 May 2020 13:08:23 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:2725]) by smtp.gmail.com with ESMTPSA id m7sm3147891qti.6.2020.05.20.13.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 13:08:22 -0700 (PDT) From: Jes Sorensen X-Google-Original-From: Jes Sorensen To: ebiggers@kernel.org Cc: linux-fscrypt@vger.kernel.org, kernel-team@fb.com, Jes Sorensen Subject: [PATCH 2/2] Let package manager override CFLAGS and CPPFLAGS Date: Wed, 20 May 2020 16:08:11 -0400 Message-Id: <20200520200811.257542-3-Jes.Sorensen@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200520200811.257542-1-Jes.Sorensen@gmail.com> References: <20200520200811.257542-1-Jes.Sorensen@gmail.com> MIME-Version: 1.0 Sender: linux-fscrypt-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org From: Jes Sorensen Package managers such as RPM wants to build everything with their preferred flags, and we shouldn't hard override flags. Signed-off-by: Jes Sorensen --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e7fb5cf..7bcd5e4 100644 --- a/Makefile +++ b/Makefile @@ -32,15 +32,14 @@ cc-option = $(shell if $(CC) $(1) -c -x c /dev/null -o /dev/null &>/dev/null; \ #### Common compiler flags. You can add additional flags by defining CFLAGS #### and/or CPPFLAGS in the environment or on the 'make' command line. -override CFLAGS := -O2 -Wall -Wundef \ +CFLAGS := -O2 -Wall -Wundef \ $(call cc-option,-Wdeclaration-after-statement) \ $(call cc-option,-Wmissing-prototypes) \ $(call cc-option,-Wstrict-prototypes) \ $(call cc-option,-Wvla) \ - $(call cc-option,-Wimplicit-fallthrough) \ - $(CFLAGS) + $(call cc-option,-Wimplicit-fallthrough) -override CPPFLAGS := -D_FILE_OFFSET_BITS=64 $(CPPFLAGS) +CPPFLAGS := -D_FILE_OFFSET_BITS=64 $(CPPFLAGS) #### Other user settings