1
0
Fork 0
forked from len0rd/rockbox

use the uclpack built in the tools dir

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8096 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2005-11-28 09:26:34 +00:00
parent c1a3d3154c
commit 446dc2aae1

View file

@ -129,34 +129,17 @@ $(BUILDDIR)/$(BINARY) : $(OBJS) $(DEPFILE) $(BUILDDIR)/libsim.a \
endif
$(BUILDDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin
@a=`uclpack -h 2>/dev/null`; \
if test -n "$$a"; then \
echo "UCLPACK rockbox" ; \
uclpack --best --2e $< $@ >/dev/null 2>&1; \
else \
echo "no uclpack command found, makes a fake rockbox.ucl"; \
echo "fake" > $@; \
fi
$(SILENT)(echo "UCLPACK rockbox" ; \
$(TOOLSDIR)/uclpack --best --2e $< $@ >/dev/null 2>&1;)
$(BUILDDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE)
@a=`uclpack -h 2>/dev/null`; \
if test -n "$$a"; then \
echo "UCLPACK rombox" ; \
uclpack --none $< $@ >/dev/null 2>&1; \
if test -s $@; then \
perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \
if test $$? -ne 0; then \
echo "removing UCL file again, making it a fake one"; \
echo "fake" > $@; \
fi \
else \
echo "Your uclpack seems to not support --none, making a fake ucl"; \
echo "fake" > $@; \
fi \
else \
echo "no uclpack command found, makes a fake rombox.ucl"; \
$(SILENT)(echo "UCLPACK rombox" ; \
$(TOOLSDIR)/uclpack --none $< $@ >/dev/null 2>&1; \
perl $(TOOLSDIR)/romsizetest.pl `cat $(MAXOUTFILE)` $<; \
if test $$? -ne 0; then \
echo "removing UCL file again, making it a fake one"; \
echo "fake" > $@; \
fi
fi)
include $(TOOLSDIR)/make.inc