From patchwork Tue Aug 6 06:45:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 170634 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5276107ile; Mon, 5 Aug 2019 23:46:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAEmOXgCWISHlMrcmf8dKv54DBo5AdL9F0lrs9awKnRUpPKX+7Zk0ZzaHaN16ymQ39R/1J X-Received: by 2002:a17:90a:ba94:: with SMTP id t20mr1636830pjr.8.1565073973765; Mon, 05 Aug 2019 23:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565073973; cv=none; d=google.com; s=arc-20160816; b=BAE6CdsoRhtCFDQ3o01rqZBqF/P7I74nC6TNgWnrcT3Xnlec0sNTB5ijuO11Mki1q/ k/qq7kBMXJQl3+cppebpx+G2ALEh+5/lOQxTtlaFMFEQweJdhYt0pc6+OEp2j+LAXCwv Nsie/RkVP1Y3/59Mf/tUf+fOMZaY2XKCiq+APMs7CcPTk6NAwnIwPSWG4K9Lzhinhmql p189yFf4537oZOFJV6z/NPNMKsDBjzVVB1niNu8zXZ4CDczneqOToFfIda6mYJJsSLk2 oFTDA9hFlUhb6Be9YltWDr95pYg1zqOR7EpCy6yCzZf+D2i5gLe+leP41LwZ9kH+7/Zc YwEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=G24gVRSpxqq84v0cTcdthPdWltEiBfbadtM8NwPuvgk=; b=xXMjakZeAMuBhb01+4GT3P2F1LNR/D1vKojLC6BLEzIUyCvPeM/DAr67wy8w6YrNsl DMNFSPvB3TofpCEUL6Uy+zn0tMTzihks/nfiYXxX8P8OvQUg+RYp2jNkuXc0I/mSPca4 /A5DHcjzbMONEu1/f3VoUtkN5LyxBjjbRIbnkVhp9DqpTXh4gxFCgElNuT7INM71tLY0 T89uAuwDb+R+2eVoJ8Z4ZeGaDp9Ma4Oi60mbLY6cZoMXvMr0KR7tkaunkBHWGwQzR0Aw w9+H+QMFrWgCk9BEjwu8qlKS7UH/V357sR1D0dCgmRWahcwbFevdoU2iZx+SGv0qpBTB YO+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=A+V5uE5q; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s6si43509332plp.229.2019.08.05.23.46.13; Mon, 05 Aug 2019 23:46:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=A+V5uE5q; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id AC26C7F33E; Tue, 6 Aug 2019 06:46:11 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by mail.openembedded.org (Postfix) with ESMTP id 0CBDA7F316 for ; Tue, 6 Aug 2019 06:46:01 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id r1so40940045pfq.12 for ; Mon, 05 Aug 2019 23:46:03 -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=Sc2/ksdBuoIblH+L2STAAhISsf7de73F9r0elY3icDc=; b=A+V5uE5qaoKU8cn4QqrteLU4vsj5d10G8KqK+g+UQwQgmvrqMtKl+e6ZjikO4wbv90 gI88jz/cLuQ8BSrEGfQNaeuUpRAq+fPUQ3Jni6R5MCSgiowwAbIWnjFJ7wY/h49rmH/a de0dAehKGG0W7Wn7ulrJc5k47uOhUn5P/yJtqSjYlIHI5tlaTzZkWOb2L5e4hVetr8KU CTaObQkHZudT7JCZU+zl5xPqPy6eoUrDwdDY57k1GVW0Xp7AZ17jW4L3qua7ABQ1c8p7 7Ij4dgu8ziVcyq2GYd4LzmOv1eaJ1KZsXw1u0gVa8F3I+6p/JtSDj3PwllCrMynyP/Ib QUJA== 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=Sc2/ksdBuoIblH+L2STAAhISsf7de73F9r0elY3icDc=; b=bN0D7T83jl09GrYENPSbHTmL4t9gk8nQ7iIGWpwD3qV8vPMmWbxKnAWfaliZ6C8ct+ kvUyB/uPbWK1PxZFcuAxDAs4RVMCHD3xYqT+pY9ZfSzKSOZLnZUn2en1Ym3x64lw+fE2 +K03LcKp5wklVB1toOVMmReTyKxrr6S/holYnw1eaKBF3rum2JWHZV9Vmz8BsF7KCDHP ymK4kw/CVtqNDT+X9h+o9cxnYmUJl4j599TI8LjFLMujn4RIKeyAX75ZI392tZQQ3lFn 40hNhX3hRZCqiQo7S4g4D2S5QjoR+cniCTQw/xM97Dwv6pHHQ9y6FCMLwq/BEaDCnkwk /yNQ== X-Gm-Message-State: APjAAAUGp/coHHQGwn5JOZbxzAIVy9pa/yBfsbsXewOWL9ORMy6WcR6t X/Edch0xb9Wd4pQmdP07O6XcLpTLeII= X-Received: by 2002:a17:90a:3542:: with SMTP id q60mr2186452pjb.0.1565073962547; Mon, 05 Aug 2019 23:46:02 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id x1sm17957104pjo.4.2019.08.05.23.46.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 23:46:02 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 5 Aug 2019 23:45:46 -0700 Message-Id: <20190806064547.32044-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190806064547.32044-1-raj.khem@gmail.com> References: <20190806064547.32044-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/3] syslinux: Override hardcoded toolnames in Makefile X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org makefile assumes native toolnames e.g. ar, as, nm etc. which causes build fails on non-x86 build hosts objcopy: Unable to recognise the format of the input file `libcom32.elf' Signed-off-by: Khem Raj --- .../syslinux/syslinux_6.04-pre2.bb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) -- 2.22.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb index 67e5d57d48..e9dbefb930 100644 --- a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb +++ b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb @@ -59,11 +59,26 @@ do_compile() { # Rebuild only the installer; keep precompiled bootloaders # as per author's request (doc/distrib.txt) - oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" LDFLAGS="${LDFLAGS}" firmware="bios" installer + oe_runmake CC="${CC} ${CFLAGS}" \ + LD="${LD}" LDFLAGS="${LDFLAGS}" \ + OBJDUMP="${OBJDUMP}" \ + OBJCOPY="${OBJCOPY}" \ + AR="${AR}" \ + STRIP="${STRIP}" \ + NM="${NM}" \ + RANLIB="${RANLIB}" \ + firmware="bios" installer } do_install() { - oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" firmware="bios" install INSTALLROOT="${D}" + oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" \ + OBJDUMP="${OBJDUMP}" \ + OBJCOPY="${OBJCOPY}" \ + AR="${AR}" \ + STRIP="${STRIP}" \ + NM="${NM}" \ + RANLIB="${RANLIB}" \ + firmware="bios" install INSTALLROOT="${D}" install -d ${D}${datadir}/syslinux/ install -m 644 ${S}/bios/core/ldlinux.sys ${D}${datadir}/syslinux/