blob: 779a950c32a032514ca2fa53be08b816b3f3aa1f [file] [log] [blame]
noinst_HEADERS = \
ume_archdefs.h
EXTRA_DIST = \
ume_archdefs.c \
ume_archdefs.h \
ume_entry.S \
ume_go.c
BUILT_SOURCES = stage2.lds
CLEANFILES = stage2.lds
# Extract ld's default linker script and hack it to our needs
stage2.lds: Makefile
$(CC) -Wl,--verbose -nostdlib 2>&1 | sed \
-e '1,/^=====\+$$/d' \
-e '/^=====\+$$/d' \
-e 's/ENTRY(_start)/ENTRY(_ume_entry)/' \
-e 's/0x08048000/kickstart_base/g' > $@ || rm -f $@