mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Cancel all predefined rules of ramdisk makefile
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
1f3f91567a
commit
691b8cd598
@ -1,3 +1,4 @@
|
|||||||
|
MAKEFLAGS += --no-builtin-rules # Prevent the implicit rules from compiling ".c" or ".s" files automatically.
|
||||||
APPS := ../apps
|
APPS := ../apps
|
||||||
BUILD_DIR := ./build
|
BUILD_DIR := ./build
|
||||||
INITRAMFS := ./initramfs
|
INITRAMFS := ./initramfs
|
||||||
@ -20,13 +21,13 @@ endif
|
|||||||
all: $(RAMDISK)
|
all: $(RAMDISK)
|
||||||
|
|
||||||
$(INITRAMFS): $(APPS) $(APPS_DIRS) $(APPS_FILES)
|
$(INITRAMFS): $(APPS) $(APPS_DIRS) $(APPS_FILES)
|
||||||
@mkdir -p $@
|
@rm -rf $@ && mkdir -p $@
|
||||||
@cp -a $(APPS)/* $@
|
@cp -a $(APPS)/* $@
|
||||||
@cd $@ && find . \( -name "*.s" -o -name "*.c" -o -name "Makefile" -o -name "README.md" \) -delete
|
@cd $@ && find . \( -name "*.s" -o -name "*.c" -o -name "Makefile" -o -name "README.md" \) -delete
|
||||||
|
|
||||||
$(RAMDISK): $(INITRAMFS) $(INITRAMFS_DIRS) $(INITRAMFS_FILES)
|
$(RAMDISK): $(INITRAMFS) $(INITRAMFS_DIRS) $(INITRAMFS_FILES)
|
||||||
@echo "Generating the ramdisk image..."
|
@echo "Generating the ramdisk image..."
|
||||||
@mkdir -p $(BUILD_DIR)
|
@rm -rf $(BUILD_DIR) && mkdir -p $(BUILD_DIR)
|
||||||
@./mkinitramfs $(INITRAMFS) $@
|
@./mkinitramfs $(INITRAMFS) $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Reference in New Issue
Block a user