All pastes #332140 Raw Edit

Something

public text v1 · immutable
#332140 ·published 2007-01-29 19:31 UTC
rendered paste body
Index: target/linux/x86-2.6/image/Makefile
===================================================================
--- target/linux/x86-2.6/image/Makefile (revision 6226)
+++ target/linux/x86-2.6/image/Makefile (working copy)
@@ -44,6 +44,9 @@
                -e 's#@BAUDRATE@#$(CONFIG_X86_GRUB_BAUDRATE)#g' \
                ./grub/menu.lst > $(KDIR)/root.grub/boot/grub/menu.lst
        PATH="$(STAGING_DIR)/usr/sbin:$(STAGING_DIR)/bin:$(PATH)" ./gen_image.sh $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).image $(CONFIG_X86_GRUB_KERNELPART) $(KDIR)/root.grub $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)+
+       # copy VMX configuration file to $(BIN_DIR)
+       $(CP) ./files/openwrt.vmx $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).vmx
   endef
 endif

@@ -62,6 +65,11 @@
        $(call Image/Build/grub,$(1))
        cp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).fs
        cp $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
+
+       # create .vmdk image for vmware
+       # check if qemu-img exists????
+       qemu-img convert -f raw $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).image \
+               -O vmdk $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).vmdk
 endef

 $(eval $(call BuildImage))
Index: target/linux/x86-2.6/Makefile
===================================================================
--- target/linux/x86-2.6/Makefile       (revision 6226)
+++ target/linux/x86-2.6/Makefile       (working copy)
@@ -11,7 +11,32 @@
 BOARDNAME:=x86
 FEATURES:=jffs2 ext2

+define Target/Description
+       Build images for X86 architecture.
+       E. g. for Soekris net4801 or VMware image
+endef
+
 include $(INCLUDE_DIR)/kernel-build.mk
+DEFAULT_PACKAGES += $(filter-out mtd kmod-natsemi,$(DEFAULT_PACKAGES))

+define Profile/net4801
+  NAME:=Soekris net4801 and compatible routers
+  PACKAGES:=kmod-natsemi
+endef
+
+define Profile/net4801/Description
+       blabla
+endef
+$(eval $(call Profile,net4801))
+
+define Profile/vmware
+  NAME:=VMware (.vmdk and .vmx files)
+  PACKAGES:=kmod-ne2k-pci
+endef
+
+define Profile/vmware/Description
+       blabla
+endef
+$(eval $(call Profile,vmware))
+
 $(eval $(call BuildKernel))
-