mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
478 B
19 lines
478 B
# SPDX-License-Identifier: GPL-2.0 |
|
# |
|
# create a compressed vmlinux image from the original vmlinux |
|
# |
|
|
|
targets := vmlinux head.o misc.o piggy.o vmlinux.lds |
|
asflags-y := |
|
|
|
OBJECTS = $(obj)/head.o $(obj)/misc.o |
|
|
|
LDFLAGS_vmlinux := -T |
|
|
|
$(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE |
|
$(call if_changed,ld) |
|
|
|
LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T |
|
|
|
$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/../vmlinux.gz FORCE |
|
$(call if_changed,ld)
|
|
|