Message ID | 20200206173225.25677-1-unixmania@gmail.com |
---|---|
Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=a7PAaMFX; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48D59N4hswz9sRG for <incoming-buildroot@patchwork.ozlabs.org>; Fri, 7 Feb 2020 04:32:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D4A0C22026; Thu, 6 Feb 2020 17:32:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XvFz0wzYEViB; Thu, 6 Feb 2020 17:32:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 90DF1207A2; Thu, 6 Feb 2020 17:32:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 9184A1BF326 for <buildroot@lists.busybox.net>; Thu, 6 Feb 2020 17:32:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8B5D686126 for <buildroot@lists.busybox.net>; Thu, 6 Feb 2020 17:32:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X0TxV58BzHxg for <buildroot@lists.busybox.net>; Thu, 6 Feb 2020 17:32:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qv1-f68.google.com (mail-qv1-f68.google.com [209.85.219.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 610D286119 for <buildroot@buildroot.org>; Thu, 6 Feb 2020 17:32:34 +0000 (UTC) Received: by mail-qv1-f68.google.com with SMTP id s7so3219670qvn.8 for <buildroot@buildroot.org>; Thu, 06 Feb 2020 09:32:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=e+R7fV6REnNgc1gkPUa1byHjLZVpP/znArFEeDwvoKA=; b=a7PAaMFXbwZ/mz9/51Fbz4B8fMEiTvPExZmUzQvcA2rt8hTm+/NEvUhKO2Vue51ikx D5APMczsUqvnMobly4RYBe5bWzwT5MTolWINwZfzcDP8RvWUsTbmw5s02C4k164+Mnop niLk/W5vD0is+/Laof6AEX2p60/qMy7qynVHFsUIrn70jxfpaNHi34+K3XQgaV6Fxni8 +uubmdFUNDAd3IN4PSaj7DDzPKON4zN02Uzy6c4aId+xNBJrTksk1f7REM948uPC68e+ 1RpJuTPqoSnRlm0PxHYdwiCMnDiy+pXQMGUSYxy1aNH1ZGlAjQFvdqoCY1beiYkF2qFS pRvw== 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; bh=e+R7fV6REnNgc1gkPUa1byHjLZVpP/znArFEeDwvoKA=; b=OMjSF49S1jMZvGZsQPY4+FLRk76Ftu43vXeRqU4BWBbH8nXJlOk/r4XD9rAXVT53Kc bXbFyiqZVueYSxkINpC+IbUSz8ZvSyReddV0U68oDGMLDFAKHYehGDm1a+kVFVbpxNZ5 gH88kqwvpPmAuipJmpc89Fo+dnSfbRI+XdeILlmxjX/ZzrSGu3n3EDzUEwjJDOcJSwij ocjLLEz4RXjqko1smMxKkn6zdKTAXvQvb9shzuMVVx1LWuD/molLOwQdqrIAaUyh9PGA sFZAuvId8pjs1KPHkS8poC1lc2ElbSM2cj0Cso6NFUQSgggRt8sravDTbhtZFF2U6uIu Es2Q== X-Gm-Message-State: APjAAAWAFMfCeuZetLj/ceyY9OuStExMMut+egB7MSQPnKXcUP6FFaY4 cufIfyMnbbRAKOO+c3lmneJnkesmkRc= X-Google-Smtp-Source: APXvYqyE6vMt0SWCV5yDYZUXVldmOrdi38h4npFKJZ80fJTIsvRQNJNVZg8XAcnUS3JYeLL7SvrhxQ== X-Received: by 2002:ad4:4204:: with SMTP id k4mr3312556qvp.203.1581010352986; Thu, 06 Feb 2020 09:32:32 -0800 (PST) Received: from casantos.remote.com ([179.181.67.11]) by smtp.gmail.com with ESMTPSA id d20sm1968417qto.2.2020.02.06.09.32.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 09:32:32 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Thu, 6 Feb 2020 14:32:23 -0300 Message-Id: <20200206173225.25677-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.2 Subject: [Buildroot] [PATCH 0/2] A better solution for the swapon/swapoff issue in inittag X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot <buildroot.busybox.net> List-Unsubscribe: <http://lists.busybox.net/mailman/options/buildroot>, <mailto:buildroot-request@busybox.net?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/buildroot/> List-Post: <mailto:buildroot@busybox.net> List-Help: <mailto:buildroot-request@busybox.net?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/buildroot>, <mailto:buildroot-request@busybox.net?subject=subscribe> Cc: Carlos Santos <unixmania@gmail.com>, Peter Korsgaard <peter@korsgaard.com>, Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>, Adam Duskett <aduskett@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" <buildroot-bounces@busybox.net> |
Series |
A better solution for the swapon/swapoff issue in inittag
|
expand
|
From: Carlos Santos <unixmania@gmail.com> The current solution is a bit clunky. It adds target-finalize hooks to two packages and defines the hook in system/system.mk. The hook code is more complex than it needs to be. This solution ensures that swapon/swapoff are built if BR2_USE_MMU == y, only, and moves the hook to skeleton-init-sysv.mk. --- CC: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> CC: Peter Korsgaard <peter@korsgaard.com> --- Carlos Santos (2): Revert "system: don't attempt swapon/swapoff in inittab if not available" package/skeleton-init-sysv: conditionally enable swapon/swapoff in inittab package/busybox/Config.in | 6 ++++++ package/busybox/busybox.mk | 15 ++++++++++++++- package/skeleton-init-sysv/skeleton-init-sysv.mk | 12 ++++++++++++ package/sysvinit/sysvinit.mk | 1 - package/util-linux/Config.in | 1 + system/Config.in | 6 ++++++ system/system.mk | 13 ------------- 7 files changed, 39 insertions(+), 15 deletions(-)