-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.lab126
35 lines (23 loc) · 899 Bytes
/
Makefile.lab126
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$(BUILD_DIR)/.config: arch/$(ARCH)/configs/$(USE_CONFIG)
$(MAKE) ARCH=$(ARCH) $(USE_CONFIG)
$(MAKE) ARCH=$(ARCH) archprepare
configure: $(BUILD_DIR)/.config
headers_install: configure
$(MAKE) ARCH=$(ARCH) headers_install
modules: configure
$(MAKE) ARCH=$(ARCH) modules
modules_install: modules
$(MAKE) ARCH=$(ARCH) modules_install
$(IMAGE): configure
$(MAKE) ARCH=$(ARCH) $(USE_CONFIG)
$(MAKE) $(VERBOSE) ARCH=$(ARCH) $@
install: $(IMAGE)
mkdir -p $(INSTALL_PATH)/$(KERNEL_SUBDIR)
cp $(BUILD_DIR)/.config $(INSTALL_PATH)/$(KERNEL_SUBDIR)/$(IMAGE).config
cp $(BUILD_DIR)/arch/$(ARCH)/boot/$(IMAGE) $(BUILD_DIR)/System.map $(INSTALL_PATH)/$(KERNEL_SUBDIR)
menuconfig: configure
$(MAKE) ARCH=$(ARCH) menuconfig
oldconfig:
$(MAKE) ARCH=$(ARCH) oldconfig
all: configure $(IMAGE)
.PHONY: configure headers_install modules modules_install $(IMAGE) install menuconfig oldconfig all