$(Q)./pack.sh $@ $^
$(Q)$(TOOLS)/lego-cksum $@
-head.bin: head.o
+head.bin: head.elf
@echo " OBJCOPY $@"
- $(Q)$(OBJCOPY) -Ielf32-powerpc -Obinary $< $@
+ $(Q)$(OBJCOPY) -Obinary $< $@
exploit.bin: exploit.elf
@echo " OBJCOPY $@"
@echo " LINK $@"
$(Q)$(LD) -T $^ -o $@
+head.elf: head.lds head.o
+ @echo " LINK $@"
+ $(Q)$(LD) -T $^ -o $@
+
exploit.o: exploit.s
@echo " ASSEMBLE $@"
$(Q)$(CC) $(CFLAGS) -c $< -o $@
--- /dev/null
+/* Copyright 2008-2009 Segher Boessenkool <segher@kernel.crashing.org>
+ This code is licensed to you under the terms of the GNU GPL, version 2;
+ see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt */
+
+OUTPUT_FORMAT("elf32-powerpc")
+OUTPUT_ARCH(powerpc:common)