Re: [pok-devel] FreeBSD compatibility |
[ Thread Index | Date Index | More lists.tuxfamily.org/pok-devel Archives ]
Hello!
For some weird reason I tried to run POK on FreeBSD. Although I ultimately succeeded, I had to modify some files to make it work.
The first file's modifications are totally safe, the second one should be safe, and I'm not sure about the third. On all my machines (running FreeBSD and Gentoo Linux) ar is found under /usr/bin, not /bin. Why did you specify /bin anyway?
Index: libpok/arch/Makefile
===================================================================
--- libpok/arch/Makefile (revision 47)
+++ libpok/arch/Makefile (working copy)
@@ -17,13 +17,13 @@
.PHONY: clean distclean depend all
clean: common-clean
- for dir in $(shell find -mindepth 1 -maxdepth 1 -type d ! -name ".svn"); \
+ for dir in $(shell find . -mindepth 1 -maxdepth 1 -type d ! -name ".svn"); \
do \
$(MAKE) -C $$dir $@ || exit 1; \
done
distclean: clean
- for dir in $(shell find -mindepth 1 -maxdepth 1 -type d ! -name ".svn"); \
+ for dir in $(shell find . -mindepth 1 -maxdepth 1 -type d ! -name ".svn"); \
do \
$(MAKE) -C $$dir $@ || exit 1; \
done
Index: misc/mk/rules-main.mk
===================================================================
--- misc/mk/rules-main.mk (revision 47)
+++ misc/mk/rules-main.mk (working copy)
@@ -6,7 +6,7 @@
$(ECHO) $(ECHO_FLAGS) $(ECHO_FLAGS_ONELINE) "[BIN] partitions.bin"
# padding to get aligned file size (needed for SPARC)
for v in $(PARTITIONS); do \
- dd if=/dev/zero of=$$v oflag=append conv=notrunc bs=1 count=`echo "4 - (\`ls -l $$v | awk '{print $$5}'\` % 4)" | bc` > /dev/null 2> /dev/null;\
+ dd if=/dev/zero conv=notrunc bs=1 count=`echo "4 - (\`ls -l $$v | awk '{print $$5}'\` % 4)" | bc` >> $$v 2>/dev/null ;\
done
cat $(PARTITIONS) > partitions.bin
if test $$? -eq 0; then $(ECHO) $(ECHO_FLAGS) $(ECHO_GREEN) " OK "; else $(ECHO) $(ECHO_FLAGS) $(ECHO_RED) " KO"; fi
===================================================================
--- misc/mk/rules-partition.mk (revision 47)
+++ misc/mk/rules-partition.mk (working copy)
@@ -17,8 +17,8 @@
$(CD) $(POK_PATH)/libpok && $(MAKE) distclean all
$(CP) $(POK_PATH)/libpok/libpok.a `pwd`/
$(ECHO) $(ECHO_FLAGS) $(ECHO_FLAGS_ONELINE) "[AR] libpart.a "
- /bin/ar -x libpok.a
- /bin/ar -csr libpart.a $(OBJS) *.lo
+ /usr/bin/ar -x libpok.a
+ /usr/bin/ar -csr libpart.a $(OBJS) *.lo
if test $$? -eq 0; then $(ECHO) $(ECHO_FLAGS) $(ECHO_GREEN) " OK "; else $(ECHO) $(ECHO_FLAGS) $(ECHO_RED) " KO"; fi
rm *.lo
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |