存档

2005年5月 的存档

解决 sourcenav 不能正常启动的问题

2005年5月31日 hufey 评论已被关闭

错误信息: Can’t find a usable init.tcl in the following directories
解决办法: 编辑snavigator这个程序,其实就是一个sh script
加一行 export LC_ALL=en_US
即可

分类: hacking 标签:

trackback test

2005年5月30日 hufey 评论已被关闭

test

分类: 未分类 标签:

Nokia 770 internet tablet

2005年5月26日 hufey 2 条评论
分类: watching 标签:

autotool flow chart

2005年5月20日 hufey 2 条评论

分类: 未分类 标签:

palmOne lifedrive

2005年5月18日 hufey 评论已被关闭
分类: watching 标签:

bochs 2.1.1 配置文件问题

2005年5月17日 hufey 评论已被关闭

如果出现: Message: ROM: couldn’t open ROM image file ‘file=/usr/share/bochs/VGABIOS-lgpl-latest’.
那是因为 2.1.1 和2.2pre的配置文件格式不一样
把file=去掉就好了

分类: commenting 标签:

gcc -S in kernel 2.6

2005年5月13日 hufey 2 条评论

以前写过一个blog是关于hack Makefile的,不过是2.4下。
现在需要在2.6的makefile里做同样的事
修改./scripts/Makefile.build
+CBD_S_cc_o_c = $(CC) $(c_flags) -S -o $*.s \
+ $(if $(filter-out /%,$<),$(srctree)/$<,$<)
%.o: %.c FORCE
$(call cmd,force_checksrc)
+ $(call CBD_S_cc_o_c)
$(call if_changed_rule,cc_o_c
即可

gcc -S

以前改的也存下档吧,省得找不到了
为了查汇编文件输出
Rule.make

[snip]
%.o: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -S $<
$(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<
[snip]

分类: saving 标签:

ebuild里的functions

2005年5月12日 hufey 评论已被关闭

pkg_setup 必须先做的各种任务,检查配置文件啥的
pkg_nofetch 显示点信息告诉user不能自动下载的原因,比如license问题
src_unpack解包,打补钉,运行辅助程序
src_compile配置和编译
src_install安装
src_test只有设置了FEATURES=”maketest”并且不设置RESTRICT=”maketest”才执行
pkg_preinst在merging之前做的事
pkg_postinst在merging之后做的事
pkg_prerm在删除之前做的事
pkg_postrm在删除之后做的事
pkg_config You use this function to setup an initial configuration for the package after it’s installed. All paths in this function should be prefixed with ROOT. This function is only executed if and when the user runs: ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config.
helper functions
use检查use标志
has_version如果指定某个包有需要的版本返回1。
例如:has_version >=sys-libs/glibc-2.3.0
best_version返回指定包的版本
use_with如果指定标志被定义了返回–with-foobar反之返回–without-foobar
use_enable如果指定标志被定义了返回–enable-foobar反之返回–disable-foobar
check_KV检查kernel的版本号
keepdir用于在指定的目录下创建一个.keep文件,以免被自动清楚。永远不要自己建这个.keep,否则如果以后portage改变对keepdir的处理方法就不能自动处理这个portage了
econf传递额外的参数给./configure
einstall传递额外的参数给make命令,注意不提倡用einstall替换make install DESTDIR=${D}
die搞死当前的进程,最好告诉为什么
einfo提醒用户重要的事

分类: commenting 标签:

震惊!!!

2005年5月12日 hufey 评论已被关闭

可以自己组装自己的机器人
恐怖!!!
大脑空白!!!

分类: commenting 标签:

linux 不能 login

2005年5月9日 hufey 评论已被关闭

可能是/bin下没有login这个文件
嘿嘿
这种问题都能出。。。

分类: commenting 标签: