mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +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
|
||||
BUILD_DIR := ./build
|
||||
INITRAMFS := ./initramfs
|
||||
@ -20,13 +21,13 @@ endif
|
||||
all: $(RAMDISK)
|
||||
|
||||
$(INITRAMFS): $(APPS) $(APPS_DIRS) $(APPS_FILES)
|
||||
@mkdir -p $@
|
||||
@rm -rf $@ && mkdir -p $@
|
||||
@cp -a $(APPS)/* $@
|
||||
@cd $@ && find . \( -name "*.s" -o -name "*.c" -o -name "Makefile" -o -name "README.md" \) -delete
|
||||
|
||||
$(RAMDISK): $(INITRAMFS) $(INITRAMFS_DIRS) $(INITRAMFS_FILES)
|
||||
@echo "Generating the ramdisk image..."
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
@rm -rf $(BUILD_DIR) && mkdir -p $(BUILD_DIR)
|
||||
@./mkinitramfs $(INITRAMFS) $@
|
||||
|
||||
clean:
|
||||
|
Reference in New Issue
Block a user