mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00

Commit7ed1c1901f
("tools: fix cross-compile var clobbering") moved the setup of the CC variable to tools/scripts/Makefile.include to make the behavior consistent across all the tools Makefiles. As the vm tools missed the include we end up with the wrong CC in a cross-compiling evironment. Fixes:7ed1c1901f
(tools: fix cross-compile var clobbering) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Martin Kelly <martin@martingkelly.com> Cc: <stable@vger.kernel.org> Link: http://lkml.kernel.org/r/20200416104748.25243-1-l.stach@pengutronix.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
553 B
553 B
SPDX-License-Identifier: GPL-2.0
Makefile for vm tools
include ../scripts/Makefile.include
TARGETS=page-types slabinfo page_owner_sort
LIB_DIR = ../lib/api LIBS = $(LIB_DIR)/libapi.a
CFLAGS = -Wall -Wextra -I../lib/ LDFLAGS = $(LIBS)
all: $(TARGETS)
$(TARGETS): $(LIBS)
$(LIBS): make -C $(LIB_DIR)
%: %.c $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
clean: $(RM) page-types slabinfo page_owner_sort make -C $(LIB_DIR) clean
sbindir ?= /usr/sbin
install: all install -d $(DESTDIR)$(sbindir) install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)