Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ else ifeq ($(filter x86_64 arm64 i386,$(ARCH)),)
endif

.PHONY: default
default: linux linux_modules tools-vm
default: linux linux_modules tools-mm

.PHONY: clean
clean: linux_clean tools-vm_clean
clean: linux_clean tools-mm_clean

.PHONY: help
help:
Expand All @@ -51,7 +51,7 @@ help:
@echo ' linux_modules - Build the Linux kernel modules'
@echo ' linux_debpkg - Creates a Debian package for the kernel'
@echo ' ack - Build the Android Common Kernel'
@echo ' tools-vm - Build linux/tools/vm'
@echo ' tools-mm - Build linux/tools/vm'
@echo ''
@echo ' Environment Variables:'
@echo ' LINUX_DEFCONFIG - The defconfig to use when building the kernel (default: defconfig, ACK default: gki_defconfig)'
Expand All @@ -62,7 +62,7 @@ help:
@echo '$(GREEN)Clean:$(NC)'
@echo ' Targets:'
@echo ' clean - Clean output from default build targets'
@echo ' <target>_clean - Clean output for <target>, where <target> is one of: ack, linux, tools-vm, rootfs'
@echo ' <target>_clean - Clean output for <target>, where <target> is one of: ack, linux, tools-mm, rootfs'
@echo ''
@echo '$(GREEN)Run/Debug:$(NC)'
@echo ' Targets:'
Expand Down Expand Up @@ -261,13 +261,13 @@ ifeq ($(ARCH),arm64)
TOOLS_MAKE += CROSS_COMPILE=$(TARGET)-
endif

.PHONY: tools-vm
tools-vm: | $(SHARED_DIR)
+ $(TOOLS_MAKE) vm_install
.PHONY: tools-mm
tools-mm: | $(SHARED_DIR)
+ $(TOOLS_MAKE) mm_install

.PHONY: tools-vm_clean
tools-vm_clean:
+ $(TOOLS_MAKE) vm_clean
.PHONY: tools-mm_clean
tools-mm_clean:
+ $(TOOLS_MAKE) mm_clean
rm -f $(SHARED_DIR)/tools/$(ARCH)/{page_owner_sort,page-types,slabinfo}

##
Expand Down