From patchwork Sun Nov 1 16:50:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1391766 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=205.233.59.134; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=lUiDV3j8; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CPMXr3wTMz9sSs for ; Mon, 2 Nov 2020 03:52:28 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=3/X3KaJjEJncMfEqj/ie77G1rJY4ZYx5AZv5vcCbIh8=; b=lUiDV3j8CnQ/lmyevIYGiM7teh mV+SJsBSgLMt74OOdfGjYgaPy9Y4COU8kXBf9BDVYnixhoK8Jd9BOPZbXflUNtt4Z9CZiJEobvBAP zH9z9BKAqIsdT9WBVeuHEMKMEXb2WL+5j0N9LR9WQrf5/jHuuUd/NlqE5Uxa601G8S94n+IPvEeBj 4qrk1awqsInvkVQKpIawArPVGxlCTyxTNSM5yOorIlcM1A2CB+xqZzO2QkTqhTmEpcn06bOjzsBbw quLXQSL20METp5Wc+2F+DHXCGoz1asv4xG05GeHTg0h3jjapeHR2HpFRmTwCq5Loutz/E0GxZlMX6 /bXFGkoA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZGZA-0000jM-Ba; Sun, 01 Nov 2020 16:50:52 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZGZ7-0000iz-IA for openwrt-devel@lists.openwrt.org; Sun, 01 Nov 2020 16:50:50 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 1C5783E52; Sun, 1 Nov 2020 17:50:47 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id f44efa23; Sun, 1 Nov 2020 17:50:28 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Subject: [PATCH] sdk: fix missing include directories Date: Sun, 1 Nov 2020 17:50:43 +0100 Message-Id: <20201101165043.18973-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201101_115049_738356_F005B0C7 X-CRM114-Status: GOOD ( 17.36 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org It's not possible to compile some applications which are using `-Werror=missing-include-dirs` compiler flags with the SDK as some target directories are missing in the SDK tarball: cc1: error: staging_dir/target/usr/include: No such file or directory [-Werror=missing-include-dirs] cc1: error: staging_dir/target/include: No such file or directory [-Werror=missing-include-dirs] Fix this by adding the missing directories in the SDK. Signed-off-by: Petr Štetiar --- target/sdk/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/sdk/Makefile b/target/sdk/Makefile index 4a9dc8be41b8..caec7178e9cf 100644 --- a/target/sdk/Makefile +++ b/target/sdk/Makefile @@ -82,7 +82,12 @@ KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$( all: compile $(BIN_DIR)/$(SDK_NAME).tar.xz: clean - mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package + mkdir -p \ + $(SDK_BUILD_DIR)/dl \ + $(SDK_BUILD_DIR)/package \ + $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/include \ + $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/usr/include + $(CP) -L $(INCLUDE_DIR) $(SCRIPT_DIR) $(SDK_BUILD_DIR)/ $(TAR) -cf - -C $(TOPDIR) \ `cd $(TOPDIR); find $(KDIR_BASE)/ -name \*.ko` \